Class: Moneybookers::Signature::Status
- Defined in:
- lib/moneybookers/signature/status.rb
Instance Attribute Summary collapse
-
#mb_amount ⇒ Object
Returns the value of attribute mb_amount.
-
#mb_currency ⇒ Object
Returns the value of attribute mb_currency.
-
#status ⇒ Object
Returns the value of attribute status.
Attributes inherited from Base
#merchant_id, #secret_word_md5, #transaction_id
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Status
constructor
A new instance of Status.
- #params ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(params = {}) ⇒ Status
Returns a new instance of Status.
5 6 7 8 9 10 |
# File 'lib/moneybookers/signature/status.rb', line 5 def initialize(params={}) super @mb_amount = params[:mb_amount] || raise(ArgumentError, "No mb_amount given") @mb_currency = params[:mb_currency] || raise(ArgumentError, "No mb_currency given") @status = params[:status] || raise(ArgumentError, "No status given") end |
Instance Attribute Details
#mb_amount ⇒ Object
Returns the value of attribute mb_amount.
3 4 5 |
# File 'lib/moneybookers/signature/status.rb', line 3 def mb_amount @mb_amount end |
#mb_currency ⇒ Object
Returns the value of attribute mb_currency.
3 4 5 |
# File 'lib/moneybookers/signature/status.rb', line 3 def mb_currency @mb_currency end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/moneybookers/signature/status.rb', line 3 def status @status end |
Instance Method Details
#params ⇒ Object
12 13 14 |
# File 'lib/moneybookers/signature/status.rb', line 12 def params [merchant_id.to_s, transaction_id.to_s, secret_word_md5.upcase, mb_amount.to_s, mb_currency.to_s, status.to_s] end |