Class: ConstantContact::Components::ClickThroughDetails

Inherits:
Component
  • Object
show all
Defined in:
lib/constantcontact/components/email_marketing/click_through_details.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Instance Attribute Details

#click_countObject

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

#urlObject

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_uidObject

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

Parameters:

  • props (Hash)
    • properties to create object from

Returns:



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