Class: Remitmd::TabDebit
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#call_count ⇒ Object
readonly
Returns the value of attribute call_count.
-
#cumulative ⇒ Object
readonly
Returns the value of attribute cumulative.
-
#memo ⇒ Object
readonly
Returns the value of attribute memo.
-
#sequence ⇒ Object
readonly
Returns the value of attribute sequence.
-
#signature ⇒ Object
readonly
Returns the value of attribute signature.
-
#tab_id ⇒ Object
readonly
Returns the value of attribute tab_id.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ TabDebit
constructor
A new instance of TabDebit.
Methods inherited from Model
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
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
246 247 248 |
# File 'lib/remitmd/models.rb', line 246 def amount @amount end |
#call_count ⇒ Object (readonly)
Returns the value of attribute call_count.
246 247 248 |
# File 'lib/remitmd/models.rb', line 246 def call_count @call_count end |
#cumulative ⇒ Object (readonly)
Returns the value of attribute cumulative.
246 247 248 |
# File 'lib/remitmd/models.rb', line 246 def cumulative @cumulative end |
#memo ⇒ Object (readonly)
Returns the value of attribute memo.
246 247 248 |
# File 'lib/remitmd/models.rb', line 246 def memo @memo end |
#sequence ⇒ Object (readonly)
Returns the value of attribute sequence.
246 247 248 |
# File 'lib/remitmd/models.rb', line 246 def sequence @sequence end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
246 247 248 |
# File 'lib/remitmd/models.rb', line 246 def signature @signature end |
#tab_id ⇒ Object (readonly)
Returns the value of attribute tab_id.
246 247 248 |
# File 'lib/remitmd/models.rb', line 246 def tab_id @tab_id end |