Sha256: c9527d983951400eb6587720c0f02da15a8fe4f0673ca8706363082f89cc1a2f

Contents?: true

Size: 658 Bytes

Versions: 14

Compression:

Stored size: 658 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)
        obj = ActivityError.new
        if props
          props.each do |key, value|
            obj.send("#{key}=", value) if obj.respond_to? key
          end
        end
        obj
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
constantcontact-4.0.0 lib/constantcontact/components/activities/activity_error.rb
constantcontact-3.0.0 lib/constantcontact/components/activities/activity_error.rb
constantcontact-2.2.1 lib/constantcontact/components/activities/activity_error.rb
constantcontact-ruby-2.2.1 lib/constantcontact/components/activities/activity_error.rb
constantcontact-ruby-2.2.0 lib/constantcontact/components/activities/activity_error.rb
constantcontact-2.2.0 lib/constantcontact/components/activities/activity_error.rb
constantcontact-2.1.0 lib/constantcontact/components/activities/activity_error.rb
constantcontact-2.0.1 lib/constantcontact/components/activities/activity_error.rb
constantcontact-2.0.0 lib/constantcontact/components/activities/activity_error.rb
constantcontact-1.3.2 lib/constantcontact/components/activities/activity_error.rb
constantcontact-1.2.0 lib/constantcontact/components/activities/activity_error.rb
constantcontact-1.1.2 lib/constantcontact/components/activities/activity_error.rb
constantcontact-1.1.1 lib/constantcontact/components/activities/activity_error.rb
constantcontact-1.1.0 lib/constantcontact/components/activities/activity_error.rb