Class: Beanie::Billable

Inherits:
Api
  • Object
show all
Defined in:
lib/beanie/billable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Api

all, build_url, #construct_path, delete, #extract, #field_name, find, get, #object_name, #populate, post, put, #save!, set_headers

Constructor Details

#initializeBillable

Initialize instance variables



37
38
39
40
41
42
43
44
# File 'lib/beanie/billable.rb', line 37

def initialize
  @id = nil
  @sales_invoice_item_id = nil
  @sales_order_item_id = nil
  @quantity = nil
  @start = nil
  @description = nil
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



33
34
35
# File 'lib/beanie/billable.rb', line 33

def description
  @description
end

#idObject

Returns the value of attribute id.



32
33
34
# File 'lib/beanie/billable.rb', line 32

def id
  @id
end

#quantityObject

Returns the value of attribute quantity.



33
34
35
# File 'lib/beanie/billable.rb', line 33

def quantity
  @quantity
end

#sales_invoice_item_idObject

Returns the value of attribute sales_invoice_item_id.



32
33
34
# File 'lib/beanie/billable.rb', line 32

def sales_invoice_item_id
  @sales_invoice_item_id
end

#sales_order_item_idObject

Returns the value of attribute sales_order_item_id.



32
33
34
# File 'lib/beanie/billable.rb', line 32

def sales_order_item_id
  @sales_order_item_id
end

#startObject

Returns the value of attribute start.



33
34
35
# File 'lib/beanie/billable.rb', line 33

def start
  @start
end