Class: ACTV::AssetPrice
Instance Attribute Summary collapse
-
#maxPriceAmt ⇒ Object
(also: #max_amount)
readonly
Returns the value of attribute maxPriceAmt.
-
#minPriceAmt ⇒ Object
(also: #min_amount)
readonly
Returns the value of attribute minPriceAmt.
-
#priceAmt ⇒ Object
(also: #amount)
readonly
Returns the value of attribute priceAmt.
Attributes inherited from Base
Instance Method Summary collapse
- #effectiveUntilDate ⇒ Object (also: #effective_date)
- #volume_pricing? ⇒ Boolean
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
#maxPriceAmt ⇒ Object (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 |
#minPriceAmt ⇒ Object (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 |
#priceAmt ⇒ Object (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
#effectiveUntilDate ⇒ Object 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
10 11 12 |
# File 'lib/actv/asset_price.rb', line 10 def volume_pricing? @attrs[:volumePricing].to_s.downcase == 'true' end |