Module: Ofx

Defined in:
lib/ofx.rb,
lib/ofx/deal.rb,
lib/ofx/quote.rb,
lib/ofx/client.rb,
lib/ofx/version.rb,
lib/ofx/ofx_error.rb,
lib/ofx/ofx_object.rb,
lib/ofx/beneficiary.rb,
lib/ofx/api_resource.rb,
lib/ofx/authentication.rb

Defined Under Namespace

Modules: OfxObject Classes: APIConnectionError, APIError, APIResource, Authentication, AuthenticationError, Beneficiary, Client, Deal, InvalidRequestError, OfxError, ParseError, Quote

Constant Summary collapse

VERSION =
"0.1.2"
STATUS_CLASS_MAPPING =
{
  400 => "InvalidRequestError",
  404 => "InvalidRequestError",
  401 => "AuthenticationError"
}

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.access_tokenObject

Returns the value of attribute access_token.



19
20
21
# File 'lib/ofx.rb', line 19

def access_token
  @access_token
end

.modeObject

Returns the value of attribute mode.



18
19
20
# File 'lib/ofx.rb', line 18

def mode
  @mode
end

Class Method Details

.api_baseObject



20
21
22
# File 'lib/ofx.rb', line 20

def api_base
  @api_base ||= mode == 'live' ? 'https://live.api.ofx.com/v1' : 'https://sandbox.api.ofx.com/v1'
end