Class: InvisibleCollector::Model::Payment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ModelAttributes

#to_h, #to_json

Constructor Details

#initialize(options = {}) ⇒ Payment

Returns a new instance of Payment.



9
10
11
12
13
# File 'lib/invisible_collector/models/payment.rb', line 9

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

Instance Attribute Details

#external_idObject

Returns the value of attribute external_id.



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

def external_id
  @external_id
end

#numberObject

Returns the value of attribute number.



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

def number
  @number
end