Class: TortoiseLabs::Item
- Inherits:
-
Object
- Object
- TortoiseLabs::Item
- Defined in:
- lib/tortoiselabs/billing.rb
Instance Attribute Summary collapse
-
#btc_price ⇒ Object
readonly
Returns the value of attribute btc_price.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#entry_ts ⇒ Object
readonly
Returns the value of attribute entry_ts.
-
#invoice ⇒ Object
readonly
Returns the value of attribute invoice.
-
#line_item ⇒ Object
readonly
Returns the value of attribute line_item.
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(ihash) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(ihash) ⇒ Item
Returns a new instance of Item.
51 52 53 54 55 56 |
# File 'lib/tortoiselabs/billing.rb', line 51 def initialize(ihash) @btc_price, @price = ihash["btc_price"], ihash["price"] @description, @line_item = ihash["description"], ihash["line_item"] @entry_ts, @invoice = ihash["entry_ts"], ihash["invoice"] @service = ihash["service"] end |
Instance Attribute Details
#btc_price ⇒ Object (readonly)
Returns the value of attribute btc_price.
48 49 50 |
# File 'lib/tortoiselabs/billing.rb', line 48 def btc_price @btc_price end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
48 49 50 |
# File 'lib/tortoiselabs/billing.rb', line 48 def description @description end |
#entry_ts ⇒ Object (readonly)
Returns the value of attribute entry_ts.
49 50 51 |
# File 'lib/tortoiselabs/billing.rb', line 49 def entry_ts @entry_ts end |
#invoice ⇒ Object (readonly)
Returns the value of attribute invoice.
48 49 50 |
# File 'lib/tortoiselabs/billing.rb', line 48 def invoice @invoice end |
#line_item ⇒ Object (readonly)
Returns the value of attribute line_item.
48 49 50 |
# File 'lib/tortoiselabs/billing.rb', line 48 def line_item @line_item end |
#price ⇒ Object (readonly)
Returns the value of attribute price.
48 49 50 |
# File 'lib/tortoiselabs/billing.rb', line 48 def price @price end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
49 50 51 |
# File 'lib/tortoiselabs/billing.rb', line 49 def service @service end |