Class: ConstantContact::Components::ClickThroughDetails
- Defined in:
- lib/constantcontact/components/email_marketing/click_through_details.rb
Instance Attribute Summary collapse
-
#click_count ⇒ Object
Returns the value of attribute click_count.
-
#url ⇒ Object
Returns the value of attribute url.
-
#url_uid ⇒ Object
Returns the value of attribute url_uid.
Class Method Summary collapse
-
.create(props) ⇒ ClickThroughDetails
Factory method to create an ClickThroughDetails object from an array.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Instance Attribute Details
#click_count ⇒ Object
Returns the value of attribute click_count
10 11 12 |
# File 'lib/constantcontact/components/email_marketing/click_through_details.rb', line 10 def click_count @click_count end |
#url ⇒ Object
Returns the value of attribute url
10 11 12 |
# File 'lib/constantcontact/components/email_marketing/click_through_details.rb', line 10 def url @url end |
#url_uid ⇒ Object
Returns the value of attribute url_uid
10 11 12 |
# File 'lib/constantcontact/components/email_marketing/click_through_details.rb', line 10 def url_uid @url_uid end |
Class Method Details
.create(props) ⇒ ClickThroughDetails
Factory method to create an ClickThroughDetails object from an array
16 17 18 19 20 21 22 23 24 |
# File 'lib/constantcontact/components/email_marketing/click_through_details.rb', line 16 def self.create(props) obj = ClickThroughDetails.new if props props.each do |key, value| obj.send("#{key}=", value) if obj.respond_to? key end end obj end |