Sha256: a746d6d6369d034bd57410ab261580f22068bc29b60f895b816d8a42315ed699

Contents?: true

Size: 657 Bytes

Versions: 3

Compression:

Stored size: 657 Bytes

Contents

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

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

      # Factory method to create an event Fee object from a hash
      # @param [Hash] props - hash of properties to create object from
      # @return [Campaign]
      def self.create(props)
        fee = Fee.new
        if props
          props.each do |key, value|
            key = key.to_s
            fee.send("#{key}=", value) if fee.respond_to? key
          end
        end
        fee
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
constantcontact-1.1.2 lib/constantcontact/components/event_spot/fee.rb
constantcontact-1.1.1 lib/constantcontact/components/event_spot/fee.rb
constantcontact-1.1.0 lib/constantcontact/components/event_spot/fee.rb