Class: Bcash::Api::AccountNotValidResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/bcash/api/account_not_valid_response.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#body, #code, #http_code, #success

Instance Method Summary collapse

Methods inherited from Response

#errors, #messages, #success?

Constructor Details

#initialize(account) ⇒ AccountNotValidResponse

Returns a new instance of AccountNotValidResponse.



5
6
7
8
# File 'lib/bcash/api/account_not_valid_response.rb', line 5

def initialize()
  self.success = false
  self. = 
end

Instance Attribute Details

#accountObject

Returns the value of attribute account.



3
4
5
# File 'lib/bcash/api/account_not_valid_response.rb', line 3

def 
  @account
end

Instance Method Details

#messageObject



10
11
12
# File 'lib/bcash/api/account_not_valid_response.rb', line 10

def message
  @account.errors_full_messages
end