Class: ConstantContact::Components::ActivityError
- Defined in:
- lib/constantcontact/components/activities/activity_error.rb
Instance Attribute Summary collapse
-
#email_address ⇒ Object
Returns the value of attribute email_address.
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#message ⇒ Object
Returns the value of attribute message.
Class Method Summary collapse
-
.create(props) ⇒ ActivityError
Factory method to create an ActivityError object from an array.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Instance Attribute Details
#email_address ⇒ Object
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_number ⇒ Object
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 |
#message ⇒ Object
Returns the value of attribute message
10 11 12 |
# File 'lib/constantcontact/components/activities/activity_error.rb', line 10 def @message end |
Class Method Details
.create(props) ⇒ ActivityError
Factory method to create an ActivityError object from an array
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 |