Class: Quandl::Lang
- Inherits:
-
Object
- Object
- Quandl::Lang
- Defined in:
- lib/quandl/lang.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#file ⇒ Object
Returns the value of attribute file.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file) ⇒ Lang
constructor
A new instance of Lang.
- #load_file ⇒ Object
Constructor Details
#initialize(file) ⇒ Lang
Returns a new instance of Lang.
16 17 18 |
# File 'lib/quandl/lang.rb', line 16 def initialize(file) self.file = file end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
14 15 16 |
# File 'lib/quandl/lang.rb', line 14 def data @data end |
#file ⇒ Object
Returns the value of attribute file.
14 15 16 |
# File 'lib/quandl/lang.rb', line 14 def file @file end |
Class Method Details
Instance Method Details
#load_file ⇒ Object
24 25 26 |
# File 'lib/quandl/lang.rb', line 24 def load_file YAML.load( File.read( file ) ) end |