Class: Files::InvoiceLineItem

Inherits:
Object
  • Object
show all
Defined in:
lib/files.com/models/invoice_line_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}, options = {}) ⇒ InvoiceLineItem

Returns a new instance of InvoiceLineItem.



7
8
9
10
# File 'lib/files.com/models/invoice_line_item.rb', line 7

def initialize(attributes = {}, options = {})
  @attributes = attributes || {}
  @options = options || {}
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/files.com/models/invoice_line_item.rb', line 5

def attributes
  @attributes
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/files.com/models/invoice_line_item.rb', line 5

def options
  @options
end

Instance Method Details

#amountObject

double - Invoice line item amount



13
14
15
# File 'lib/files.com/models/invoice_line_item.rb', line 13

def amount
  @attributes[:amount]
end

#created_atObject

date-time - Invoice line item created at date/time



18
19
20
# File 'lib/files.com/models/invoice_line_item.rb', line 18

def created_at
  @attributes[:created_at]
end

#descriptionObject

string - Invoice line item description



23
24
25
# File 'lib/files.com/models/invoice_line_item.rb', line 23

def description
  @attributes[:description]
end

#planObject

string - Plan name



48
49
50
# File 'lib/files.com/models/invoice_line_item.rb', line 48

def plan
  @attributes[:plan]
end

#service_end_atObject

date-time - Invoice line item service end date/time



33
34
35
# File 'lib/files.com/models/invoice_line_item.rb', line 33

def service_end_at
  @attributes[:service_end_at]
end

#service_start_atObject

date-time - Invoice line item service start date/time



38
39
40
# File 'lib/files.com/models/invoice_line_item.rb', line 38

def service_start_at
  @attributes[:service_start_at]
end

#siteObject

string - Site name



53
54
55
# File 'lib/files.com/models/invoice_line_item.rb', line 53

def site
  @attributes[:site]
end

#typeObject

string - Invoice line item type



28
29
30
# File 'lib/files.com/models/invoice_line_item.rb', line 28

def type
  @attributes[:type]
end

#updated_atObject

date-time - Invoice line item updated date/time



43
44
45
# File 'lib/files.com/models/invoice_line_item.rb', line 43

def updated_at
  @attributes[:updated_at]
end