Class: Brapi::Resources::V2
- Inherits:
-
Object
- Object
- Brapi::Resources::V2
- Defined in:
- lib/brapi/resources/v2.rb,
lib/brapi/resources/v2/fii.rb,
lib/brapi/resources/v2/macro.rb,
lib/brapi/resources/v2/crypto.rb,
lib/brapi/resources/v2/currency.rb,
lib/brapi/resources/v2/treasury.rb,
lib/brapi/resources/v2/inflation.rb,
lib/brapi/resources/v2/prime_rate.rb
Defined Under Namespace
Classes: Crypto, Currency, Fii, Inflation, Macro, PrimeRate, Treasury
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #crypto ⇒ Object
- #currency ⇒ Object
- #fii ⇒ Object
- #inflation ⇒ Object
-
#initialize(client) ⇒ V2
constructor
A new instance of V2.
- #macro ⇒ Object
- #prime_rate ⇒ Object
- #treasury ⇒ 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 |
#fii ⇒ Object
28 29 30 |
# File 'lib/brapi/resources/v2.rb', line 28 def fii @fii ||= Brapi::Resources::V2::Fii.new(client) end |
#inflation ⇒ Object
20 21 22 |
# File 'lib/brapi/resources/v2.rb', line 20 def inflation @inflation ||= Brapi::Resources::V2::Inflation.new(client) end |
#macro ⇒ Object
32 33 34 |
# File 'lib/brapi/resources/v2.rb', line 32 def macro @macro ||= Brapi::Resources::V2::Macro.new(client) end |