Class: ConstantContact::Components::VerifiedEmailAddress

Inherits:
Component
  • Object
show all
Defined in:
lib/constantcontact/components/account/verified_email_address.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Instance Attribute Details

#email_addressObject

Returns the value of attribute email_address


10
11
12
# File 'lib/constantcontact/components/account/verified_email_address.rb', line 10

def email_address
  @email_address
end

#statusObject

Returns the value of attribute status


10
11
12
# File 'lib/constantcontact/components/account/verified_email_address.rb', line 10

def status
  @status
end

Class Method Details

.create(props) ⇒ VerifiedEmailAddress

Factory method to create a VerifiedEmailAddress object from a json string

Parameters:

  • props (Hash)
    • properties to create object from

Returns:

[View source]

15
16
17
18
19
20
21
22
23
# File 'lib/constantcontact/components/account/verified_email_address.rb', line 15

def self.create(props)
  obj = VerifiedEmailAddress.new
  if props
    props.each do |key, value|
      obj.send("#{key}=", value) if obj.respond_to? key
    end
  end
  obj
end