Class: ConstantContact::Components::EmailAddress
- Defined in:
- lib/constantcontact/components/contacts/email_address.rb
Instance Attribute Summary collapse
-
#confirm_status ⇒ Object
Returns the value of attribute confirm_status.
-
#email_address ⇒ Object
Returns the value of attribute email_address.
-
#id ⇒ Object
Returns the value of attribute id.
-
#opt_in_date ⇒ Object
Returns the value of attribute opt_in_date.
-
#opt_in_source ⇒ Object
Returns the value of attribute opt_in_source.
-
#opt_out_date ⇒ Object
Returns the value of attribute opt_out_date.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
-
.create(props) ⇒ EmailAddress
Factory method to create an EmailAddress object from a json string.
Instance Method Summary collapse
-
#initialize(email_address = nil) ⇒ EmailAddress
constructor
Class constructor.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Constructor Details
#initialize(email_address = nil) ⇒ EmailAddress
Class constructor
15 16 17 |
# File 'lib/constantcontact/components/contacts/email_address.rb', line 15 def initialize(email_address = nil) @email_address = email_address if email_address end |
Instance Attribute Details
#confirm_status ⇒ Object
Returns the value of attribute confirm_status
10 11 12 |
# File 'lib/constantcontact/components/contacts/email_address.rb', line 10 def confirm_status @confirm_status end |
#email_address ⇒ Object
Returns the value of attribute email_address
10 11 12 |
# File 'lib/constantcontact/components/contacts/email_address.rb', line 10 def email_address @email_address end |
#id ⇒ Object
Returns the value of attribute id
10 11 12 |
# File 'lib/constantcontact/components/contacts/email_address.rb', line 10 def id @id end |
#opt_in_date ⇒ Object
Returns the value of attribute opt_in_date
10 11 12 |
# File 'lib/constantcontact/components/contacts/email_address.rb', line 10 def opt_in_date @opt_in_date end |
#opt_in_source ⇒ Object
Returns the value of attribute opt_in_source
10 11 12 |
# File 'lib/constantcontact/components/contacts/email_address.rb', line 10 def opt_in_source @opt_in_source end |
#opt_out_date ⇒ Object
Returns the value of attribute opt_out_date
10 11 12 |
# File 'lib/constantcontact/components/contacts/email_address.rb', line 10 def opt_out_date @opt_out_date end |
#status ⇒ Object
Returns the value of attribute status
10 11 12 |
# File 'lib/constantcontact/components/contacts/email_address.rb', line 10 def status @status end |
Class Method Details
.create(props) ⇒ EmailAddress
Factory method to create an EmailAddress object from a json string
22 23 24 25 26 27 28 29 30 |
# File 'lib/constantcontact/components/contacts/email_address.rb', line 22 def self.create(props) obj = EmailAddress.new if props props.each do |key, value| obj.send("#{key}=", value) if obj.respond_to? key end end obj end |