Class: ConstantContact::Components::TrackingSummary

Inherits:
Component
  • Object
show all
Defined in:
lib/constantcontact/components/tracking/tracking_summary.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Instance Attribute Details

#bouncesObject

Returns the value of attribute bounces



10
11
12
# File 'lib/constantcontact/components/tracking/tracking_summary.rb', line 10

def bounces
  @bounces
end

#clicksObject

Returns the value of attribute clicks



10
11
12
# File 'lib/constantcontact/components/tracking/tracking_summary.rb', line 10

def clicks
  @clicks
end

#forwardsObject

Returns the value of attribute forwards



10
11
12
# File 'lib/constantcontact/components/tracking/tracking_summary.rb', line 10

def forwards
  @forwards
end

#opensObject

Returns the value of attribute opens



10
11
12
# File 'lib/constantcontact/components/tracking/tracking_summary.rb', line 10

def opens
  @opens
end

#sendsObject

Returns the value of attribute sends



10
11
12
# File 'lib/constantcontact/components/tracking/tracking_summary.rb', line 10

def sends
  @sends
end

#spam_countObject

Returns the value of attribute spam_count



10
11
12
# File 'lib/constantcontact/components/tracking/tracking_summary.rb', line 10

def spam_count
  @spam_count
end

#unsubscribesObject

Returns the value of attribute unsubscribes



10
11
12
# File 'lib/constantcontact/components/tracking/tracking_summary.rb', line 10

def unsubscribes
  @unsubscribes
end

Class Method Details

.create(props) ⇒ TrackingSummary

Factory method to create a TrackingSummary 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/tracking/tracking_summary.rb', line 16

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