Class: Brapi::Resources::V2

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#clientObject (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

#cryptoObject



12
13
14
# File 'lib/brapi/resources/v2.rb', line 12

def crypto
  @crypto ||= Brapi::Resources::V2::Crypto.new(client)
end

#currencyObject



16
17
18
# File 'lib/brapi/resources/v2.rb', line 16

def currency
  @currency ||= Brapi::Resources::V2::Currency.new(client)
end

#inflationObject



20
21
22
# File 'lib/brapi/resources/v2.rb', line 20

def inflation
  @inflation ||= Brapi::Resources::V2::Inflation.new(client)
end

#prime_rateObject



24
25
26
# File 'lib/brapi/resources/v2.rb', line 24

def prime_rate
  @prime_rate ||= Brapi::Resources::V2::PrimeRate.new(client)
end