Sha256: 0d309e4ab1d9a59ba7bd9ea8ce6f3559a46833e5c0de3472b0d2dc337ff11fc0

Contents?: true

Size: 673 Bytes

Versions: 11

Compression:

Stored size: 673 Bytes

Contents

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

module ConstantContact
  module Components
    class EventFee < Component
      attr_accessor :early_fee, :fee, :fee_scope, :id, :label, :late_fee

      # Factory method to create an event Fee object from a hash
      # @param [Hash] props - hash of properties to create object from
      # @return [EventFee]
      def self.create(props)
        obj = EventFee.new
        if props
          props.each do |key, value|
            key = key.to_s
            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_fee.rb
constantcontact-3.0.0 lib/constantcontact/components/event_spot/event_fee.rb
constantcontact-2.2.1 lib/constantcontact/components/event_spot/event_fee.rb
constantcontact-ruby-2.2.1 lib/constantcontact/components/event_spot/event_fee.rb
constantcontact-ruby-2.2.0 lib/constantcontact/components/event_spot/event_fee.rb
constantcontact-2.2.0 lib/constantcontact/components/event_spot/event_fee.rb
constantcontact-2.1.0 lib/constantcontact/components/event_spot/event_fee.rb
constantcontact-2.0.1 lib/constantcontact/components/event_spot/event_fee.rb
constantcontact-2.0.0 lib/constantcontact/components/event_spot/event_fee.rb
constantcontact-1.3.2 lib/constantcontact/components/event_spot/event_fee.rb
constantcontact-1.2.0 lib/constantcontact/components/event_spot/event_fee.rb