Sha256: a1c158c19521c41e44242f0b59fed068112849fb3b327424d8e0dc29eb6a13af

Contents?: true

Size: 669 Bytes

Versions: 1

Compression:

Stored size: 669 Bytes

Contents

#
# activity_error.rb
# ConstantContact
#
# Copyright (c) 2013 Constant Contact. All rights reserved.

module ConstantContact
  module Components
    class ActivityError < Component
      attr_accessor :message, :line_number, :email_address

      # Factory method to create an ActivityError object from an array
      # @param [Hash] props - hash of properties to create object from
      # @return [ActivityError]
      def self.create(props)
        activity_error = ActivityError.new
        if props
          props.each do |key, value|
            activity_error.send("#{key}=", value)
          end
        end
        activity_error
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
constantcontact-1.0.1 lib/constantcontact/components/activities/activity_error.rb