Class: Remitmd::TabDebit

Inherits:
Model
  • Object
show all
Defined in:
lib/remitmd/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#inspect, #to_h

Constructor Details

#initialize(attrs) ⇒ TabDebit

Returns a new instance of TabDebit.



235
236
237
238
239
240
241
242
243
244
# File 'lib/remitmd/models.rb', line 235

def initialize(attrs)
  h = attrs.transform_keys(&:to_s)
  @tab_id     = h["tab_id"]
  @amount     = decimal(h["amount"])
  @cumulative = decimal(h["cumulative"])
  @call_count = h["call_count"].to_i
  @memo       = h["memo"] || ""
  @sequence   = h["sequence"].to_i
  @signature  = h["signature"]
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



246
247
248
# File 'lib/remitmd/models.rb', line 246

def amount
  @amount
end

#call_countObject (readonly)

Returns the value of attribute call_count.



246
247
248
# File 'lib/remitmd/models.rb', line 246

def call_count
  @call_count
end

#cumulativeObject (readonly)

Returns the value of attribute cumulative.



246
247
248
# File 'lib/remitmd/models.rb', line 246

def cumulative
  @cumulative
end

#memoObject (readonly)

Returns the value of attribute memo.



246
247
248
# File 'lib/remitmd/models.rb', line 246

def memo
  @memo
end

#sequenceObject (readonly)

Returns the value of attribute sequence.



246
247
248
# File 'lib/remitmd/models.rb', line 246

def sequence
  @sequence
end

#signatureObject (readonly)

Returns the value of attribute signature.



246
247
248
# File 'lib/remitmd/models.rb', line 246

def signature
  @signature
end

#tab_idObject (readonly)

Returns the value of attribute tab_id.



246
247
248
# File 'lib/remitmd/models.rb', line 246

def tab_id
  @tab_id
end