Class: Brapi::Resources::V2
- Inherits:
-
Object
- Object
- Brapi::Resources::V2
- Defined in:
- lib/brapi/resources/v2.rb,
lib/brapi/resources/v2/crypto.rb,
lib/brapi/resources/v2/currency.rb,
lib/brapi/resources/v2/inflation.rb,
lib/brapi/resources/v2/prime_rate.rb
Defined Under Namespace
Classes: Crypto, Currency, Inflation, PrimeRate
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #crypto ⇒ Object
- #currency ⇒ Object
- #inflation ⇒ Object
-
#initialize(client) ⇒ V2
constructor
A new instance of V2.
- #prime_rate ⇒ Object
Constructor Details
#initialize(client) ⇒ V2
Returns a new instance of V2.
8 9 10 |
# File 'lib/brapi/resources/v2.rb', line 8 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/brapi/resources/v2.rb', line 6 def client @client end |
Instance Method Details
#crypto ⇒ Object
12 13 14 |
# File 'lib/brapi/resources/v2.rb', line 12 def crypto @crypto ||= Brapi::Resources::V2::Crypto.new(client) end |
#currency ⇒ Object
16 17 18 |
# File 'lib/brapi/resources/v2.rb', line 16 def currency @currency ||= Brapi::Resources::V2::Currency.new(client) end |