Class: Dnsimple::Struct::Charge
- Defined in:
- lib/dnsimple/struct/charge.rb
Defined Under Namespace
Classes: ChargeItem
Instance Attribute Summary collapse
-
#balance_amount ⇒ Float
The amount that was paid via wallet.
-
#invoiced_at ⇒ DateTime
When the charge was invoiced.
-
#items ⇒ Array<ChargeItems>
The charge items.
-
#reference ⇒ String
The reference number of the invoice.
-
#state ⇒ String
The state of the charge.
-
#total_amount ⇒ Float
The aggregate amount of all line items, that need to be paid.
Instance Method Summary collapse
-
#initialize ⇒ Charge
constructor
A new instance of Charge.
Constructor Details
#initialize ⇒ Charge
Returns a new instance of Charge.
52 53 54 55 |
# File 'lib/dnsimple/struct/charge.rb', line 52 def initialize(*) super @items ||= [] end |
Instance Attribute Details
#balance_amount ⇒ Float
Returns The amount that was paid via wallet.
41 42 43 |
# File 'lib/dnsimple/struct/charge.rb', line 41 def balance_amount @balance_amount end |
#invoiced_at ⇒ DateTime
Returns When the charge was invoiced.
47 48 49 |
# File 'lib/dnsimple/struct/charge.rb', line 47 def invoiced_at @invoiced_at end |
#items ⇒ Array<ChargeItems>
Returns The charge items.
50 51 52 |
# File 'lib/dnsimple/struct/charge.rb', line 50 def items @items end |
#reference ⇒ String
Returns The reference number of the invoice.
35 36 37 |
# File 'lib/dnsimple/struct/charge.rb', line 35 def reference @reference end |
#state ⇒ String
Returns The state of the charge.
44 45 46 |
# File 'lib/dnsimple/struct/charge.rb', line 44 def state @state end |
#total_amount ⇒ Float
Returns The aggregate amount of all line items, that need to be paid.
38 39 40 |
# File 'lib/dnsimple/struct/charge.rb', line 38 def total_amount @total_amount end |