Class: Quandl::Client::Sheet

Inherits:
Base
  • Object
show all
Defined in:
lib/quandl/client/models/sheet.rb

Instance Method Summary collapse

Methods inherited from Base

her_api, models, models_use_her_api!, url_with_version, use

Instance Method Details

#childrenObject



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

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

#htmlObject



39
40
41
# File 'lib/quandl/client/models/sheet.rb', line 39

def html
  @html ||= self.attributes[:html] || Quandl::Client::Sheet.find(full_url_title).attributes[:html]
end

#parentObject

ASSOCIATIONS #



17
18
19
# File 'lib/quandl/client/models/sheet.rb', line 17

def parent
  @parent ||= Quandl::Client::Sheet.find(parent_url_title)
end

#parent_url_titleObject



43
44
45
# File 'lib/quandl/client/models/sheet.rb', line 43

def parent_url_title
  @parent_url_title ||= self.full_url_title.split('/')[0..-2].join()
end