Class: Brapi::Resource
- Inherits:
-
Object
- Object
- Brapi::Resource
- Defined in:
- lib/brapi/resource.rb
Direct Known Subclasses
Brapi::Resources::Available, Brapi::Resources::Quote, Brapi::Resources::V2::Crypto, Brapi::Resources::V2::Currency, Brapi::Resources::V2::Inflation, Brapi::Resources::V2::PrimeRate
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(client) ⇒ Resource
Returns a new instance of Resource.
7 8 9 |
# File 'lib/brapi/resource.rb', line 7 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/brapi/resource.rb', line 5 def client @client end |