Class: Quandl::Client::Sheet

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

#childrenObject



20
21
22
# File 'lib/quandl/client/models/sheet.rb', line 20

def children
  Quandl::Client::Sheet.parent_url_title(self.full_url_title)
end

#htmlObject



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

#parentObject

ASSOCIATIONS #



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_titleObject



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