Class: ConstantContact::Components::ActivityError

Inherits:
Component
  • Object
show all
Defined in:
lib/constantcontact/components/activities/activity_error.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/activities/activity_error.rb', line 10

def email_address
  @email_address
end

#line_numberObject

Returns the value of attribute line_number



10
11
12
# File 'lib/constantcontact/components/activities/activity_error.rb', line 10

def line_number
  @line_number
end

#messageObject

Returns the value of attribute message



10
11
12
# File 'lib/constantcontact/components/activities/activity_error.rb', line 10

def message
  @message
end

Class Method Details

.create(props) ⇒ ActivityError

Factory method to create an ActivityError object from an array

Parameters:

  • props (Hash)
    • hash of properties to create object from

Returns:



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

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