Class: Quandl::Client::Sheet
- Inherits:
-
Base
- Object
- Base
- Quandl::Client::Sheet
show all
- Defined in:
- lib/quandl/client/models/sheet.rb
Constant Summary
Constants inherited
from Base
Base::TOKEN_THREAD_KEY
Instance Method Summary
collapse
Methods inherited from Base
her_api, models, models_use_her_api!, threadsafe_token!, threadsafe_token?, url_with_version, use
Instance Method Details
#html ⇒ Object
38
39
40
|
# File 'lib/quandl/client/models/sheet.rb', line 38
def html
@html ||= self.attributes[:html] || Quandl::Client::Sheet.find(full_url_title).attributes[:html]
end
|
#parent ⇒ Object
16
17
18
|
# File 'lib/quandl/client/models/sheet.rb', line 16
def parent
@parent ||= Quandl::Client::Sheet.find(parent_url_title)
end
|
#parent_url_title ⇒ Object
42
43
44
|
# File 'lib/quandl/client/models/sheet.rb', line 42
def parent_url_title
@parent_url_title ||= self.full_url_title.split('/')[0..-2].join()
end
|