class ConstantContact::Components::ActivityError

Attributes

email_address[RW]
line_number[RW]
message[RW]

Public Class Methods

create(props) click to toggle source

Factory method to create an ActivityError object from an array @param [Hash] props - hash of properties to create object from @return [ActivityError]

# 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