Sha256: 70f061f645e48fb5a67d9ee672fd0c89b5ded2fe3e13f9ecf8ec81b5660ae863

Contents?: true

Size: 684 Bytes

Versions: 11

Compression:

Stored size: 684 Bytes

Contents

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

module ConstantContact
  module Components
    class EventItemAttribute < Component
      attr_accessor :id, :name, :quantity_available, :quantity_total

      # Factory method to create an EventItemAttribute object from a hash
      # @param [Hash] props - properties to create object from
      # @return [EventItemAttribute]
      def self.create(props)
        obj = EventItemAttribute.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

11 entries across 11 versions & 2 rubygems

Version Path
constantcontact-4.0.0 lib/constantcontact/components/event_spot/event_item_attribute.rb
constantcontact-3.0.0 lib/constantcontact/components/event_spot/event_item_attribute.rb
constantcontact-2.2.1 lib/constantcontact/components/event_spot/event_item_attribute.rb
constantcontact-ruby-2.2.1 lib/constantcontact/components/event_spot/event_item_attribute.rb
constantcontact-ruby-2.2.0 lib/constantcontact/components/event_spot/event_item_attribute.rb
constantcontact-2.2.0 lib/constantcontact/components/event_spot/event_item_attribute.rb
constantcontact-2.1.0 lib/constantcontact/components/event_spot/event_item_attribute.rb
constantcontact-2.0.1 lib/constantcontact/components/event_spot/event_item_attribute.rb
constantcontact-2.0.0 lib/constantcontact/components/event_spot/event_item_attribute.rb
constantcontact-1.3.2 lib/constantcontact/components/event_spot/event_item_attribute.rb
constantcontact-1.2.0 lib/constantcontact/components/event_spot/event_item_attribute.rb