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.
54 55 56 57 |
# File 'lib/dnsimple/struct/charge.rb', line 54 def initialize(*) super @items ||= [] end |
Instance Attribute Details
#balance_amount ⇒ Float
Returns The amount that was paid via wallet.
43 44 45 |
# File 'lib/dnsimple/struct/charge.rb', line 43 def balance_amount @balance_amount end |
#invoiced_at ⇒ DateTime
Returns When the charge was invoiced.
49 50 51 |
# File 'lib/dnsimple/struct/charge.rb', line 49 def invoiced_at @invoiced_at end |
#items ⇒ Array<ChargeItems>
Returns The charge items.
52 53 54 |
# File 'lib/dnsimple/struct/charge.rb', line 52 def items @items end |
#reference ⇒ String
Returns The reference number of the invoice.
37 38 39 |
# File 'lib/dnsimple/struct/charge.rb', line 37 def reference @reference end |
#state ⇒ String
Returns The state of the charge.
46 47 48 |
# File 'lib/dnsimple/struct/charge.rb', line 46 def state @state end |
#total_amount ⇒ Float
Returns The aggregate amount of all line items, that need to be paid.
40 41 42 |
# File 'lib/dnsimple/struct/charge.rb', line 40 def total_amount @total_amount end |