Sha256: fc7f2e3d9b73b917b9b16694992adf43be2abcd3799a3fd02f00565cff9e0f28

Contents?: true

Size: 813 Bytes

Versions: 11

Compression:

Stored size: 813 Bytes

Contents

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

module ConstantContact
  module Components
    module EventSpot
      class RegistrantPromoCodeInfo < Component
        attr_accessor :code_name, :code_type, :discount_amount, :discount_scope, :discount_type, :redemption_count

        # Factory method to create a RegistrantPromoCode object from a hash
        # @param [Hash] props - hash of properties to create object from
        # @return [RegistrantPromoCodeInfo]
        def self.create(props)
          obj = RegistrantPromoCodeInfo.new
          props.each do |key, value|
            key = key.to_s
            obj.send("#{key}=", value) if obj.respond_to? key
          end if props
          obj
        end
      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/registrant_promo_code_info.rb
constantcontact-3.0.0 lib/constantcontact/components/event_spot/registrant_promo_code_info.rb
constantcontact-2.2.1 lib/constantcontact/components/event_spot/registrant_promo_code_info.rb
constantcontact-ruby-2.2.1 lib/constantcontact/components/event_spot/registrant_promo_code_info.rb
constantcontact-ruby-2.2.0 lib/constantcontact/components/event_spot/registrant_promo_code_info.rb
constantcontact-2.2.0 lib/constantcontact/components/event_spot/registrant_promo_code_info.rb
constantcontact-2.1.0 lib/constantcontact/components/event_spot/registrant_promo_code_info.rb
constantcontact-2.0.1 lib/constantcontact/components/event_spot/registrant_promo_code_info.rb
constantcontact-2.0.0 lib/constantcontact/components/event_spot/registrant_promo_code_info.rb
constantcontact-1.3.2 lib/constantcontact/components/event_spot/registrant_promo_code_info.rb
constantcontact-1.2.0 lib/constantcontact/components/event_spot/registrant_promo_code_info.rb