Class: SBIF
- Inherits:
-
Object
- Object
- SBIF
- Defined in:
- lib/sbif.rb
Constant Summary collapse
- VERSION =
"0.1.1"
- SITE =
"http://api.sbif.cl/api-sbif/recursos"
- INDICATORS =
%w(uf utm dolar euro)
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(params) ⇒ SBIF
constructor
A new instance of SBIF.
Constructor Details
#initialize(params) ⇒ SBIF
Returns a new instance of SBIF.
13 14 15 |
# File 'lib/sbif.rb', line 13 def initialize(params) @api_key = params[:api_key] end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/sbif.rb', line 11 def api_key @api_key end |