Class: Bcash::Api::AccountResponse

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

Direct Known Subclasses

CreateAccountResponse

Instance Attribute Summary

Attributes inherited from Response

#body, #code, #http_code, #message, #success

Instance Method Summary collapse

Methods inherited from Response

#errors, #initialize, #messages, #success?

Constructor Details

This class inherits a constructor from Bcash::Api::Response

Instance Method Details

#accountsObject



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

def accounts
  body['accounts'] || []
end

#cpfObject



7
8
9
# File 'lib/bcash/api/account_response.rb', line 7

def cpf
  body['cpf']
end

#emailObject



11
12
13
# File 'lib/bcash/api/account_response.rb', line 11

def email
  body['email']
end