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