Class: ACTV::AssetPrice

Inherits:
Base
  • Object
show all
Defined in:
lib/actv/asset_price.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, #delete, from_response, #initialize, #memoize, #method_missing, object_attr_reader, #respond_to?, #to_hash, #update, uri_attr_reader

Constructor Details

This class inherits a constructor from ACTV::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ACTV::Base

Instance Attribute Details

#maxPriceAmtObject (readonly) Also known as: max_amount

Returns the value of attribute maxPriceAmt.



4
5
6
# File 'lib/actv/asset_price.rb', line 4

def maxPriceAmt
  @maxPriceAmt
end

#minPriceAmtObject (readonly) Also known as: min_amount

Returns the value of attribute minPriceAmt.



4
5
6
# File 'lib/actv/asset_price.rb', line 4

def minPriceAmt
  @minPriceAmt
end

#priceAmtObject (readonly) Also known as: amount

Returns the value of attribute priceAmt.



4
5
6
# File 'lib/actv/asset_price.rb', line 4

def priceAmt
  @priceAmt
end

Instance Method Details

#effectiveUntilDateObject Also known as: effective_date



6
7
8
# File 'lib/actv/asset_price.rb', line 6

def effectiveUntilDate
  @attrs[:effectiveUntilDate] || '2200-01-01T00:00:00'
end

#volume_pricing?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/actv/asset_price.rb', line 10

def volume_pricing?
  @attrs[:volumePricing].to_s.downcase == 'true'
end