Class: InvisibleCollector::Model::Credit

Inherits:
AbstractModel show all
Defined in:
lib/invisible_collector/models/credit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ModelAttributes

#to_h, #to_json

Constructor Details

#initialize(options = {}) ⇒ Credit

Returns a new instance of Credit.



11
12
13
14
15
16
17
# File 'lib/invisible_collector/models/credit.rb', line 11

def initialize(options = {})
  options = options.with_indifferent_access
  @number = options[:number]
  @description = options[:description]
  @date = options[:date]
  @gross_total = options[:gross_total]
end

Instance Attribute Details

#dateObject

Returns the value of attribute date.



8
9
10
# File 'lib/invisible_collector/models/credit.rb', line 8

def date
  @date
end

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/invisible_collector/models/credit.rb', line 7

def description
  @description
end

#gross_totalObject

Returns the value of attribute gross_total.



9
10
11
# File 'lib/invisible_collector/models/credit.rb', line 9

def gross_total
  @gross_total
end

#numberObject

Returns the value of attribute number.



6
7
8
# File 'lib/invisible_collector/models/credit.rb', line 6

def number
  @number
end