Class: Square::Connect::Tax
- Inherits:
-
Object
- Object
- Square::Connect::Tax
- Defined in:
- lib/square/connect/tax.rb
Instance Attribute Summary collapse
-
#applied_money ⇒ Object
Returns the value of attribute applied_money.
-
#inclusion_type ⇒ Object
Returns the value of attribute inclusion_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rate ⇒ Object
Returns the value of attribute rate.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Tax
constructor
A new instance of Tax.
Constructor Details
#initialize(attributes = {}) ⇒ Tax
Returns a new instance of Tax.
6 7 8 9 10 11 12 13 |
# File 'lib/square/connect/tax.rb', line 6 def initialize(attributes = {}) self.name = attributes[:name] self.applied_money = if attributes[:applied_money] Money.new attributes[:applied_money] end self.rate = attributes[:rate] self.inclusion_type = attributes[:inclusion_type] end |
Instance Attribute Details
#applied_money ⇒ Object
Returns the value of attribute applied_money.
4 5 6 |
# File 'lib/square/connect/tax.rb', line 4 def applied_money @applied_money end |
#inclusion_type ⇒ Object
Returns the value of attribute inclusion_type.
4 5 6 |
# File 'lib/square/connect/tax.rb', line 4 def inclusion_type @inclusion_type end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/square/connect/tax.rb', line 4 def name @name end |
#rate ⇒ Object
Returns the value of attribute rate.
4 5 6 |
# File 'lib/square/connect/tax.rb', line 4 def rate @rate end |