Class: Stripe::Price::Tier
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::Price::Tier
- Defined in:
- lib/stripe/resources/price.rb
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#flat_amount ⇒ Object
readonly
Price for the entire tier.
-
#flat_amount_decimal ⇒ Object
readonly
Same as ‘flat_amount`, but contains a decimal value with at most 12 decimal places.
-
#unit_amount ⇒ Object
readonly
Per unit price for units relevant to the tier.
-
#unit_amount_decimal ⇒ Object
readonly
Same as ‘unit_amount`, but contains a decimal value with at most 12 decimal places.
-
#up_to ⇒ Object
readonly
Up to and including to this quantity will be contained in the tier.
Attributes inherited from StripeObject
Method Summary
Methods inherited from StripeObject
#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#flat_amount ⇒ Object (readonly)
Price for the entire tier.
80 81 82 |
# File 'lib/stripe/resources/price.rb', line 80 def flat_amount @flat_amount end |
#flat_amount_decimal ⇒ Object (readonly)
Same as ‘flat_amount`, but contains a decimal value with at most 12 decimal places.
82 83 84 |
# File 'lib/stripe/resources/price.rb', line 82 def flat_amount_decimal @flat_amount_decimal end |
#unit_amount ⇒ Object (readonly)
Per unit price for units relevant to the tier.
84 85 86 |
# File 'lib/stripe/resources/price.rb', line 84 def unit_amount @unit_amount end |
#unit_amount_decimal ⇒ Object (readonly)
Same as ‘unit_amount`, but contains a decimal value with at most 12 decimal places.
86 87 88 |
# File 'lib/stripe/resources/price.rb', line 86 def unit_amount_decimal @unit_amount_decimal end |
#up_to ⇒ Object (readonly)
Up to and including to this quantity will be contained in the tier.
88 89 90 |
# File 'lib/stripe/resources/price.rb', line 88 def up_to @up_to end |