Class: Quandl::Command::Presenters::ScraperPresenter

Inherits:
Quandl::Command::Presenter::Record show all
Defined in:
lib/quandl/command/presenters/scraper_presenter.rb

Instance Attribute Summary

Attributes inherited from Quandl::Command::Presenter::Record

#object, #options

Instance Method Summary collapse

Methods inherited from Quandl::Command::Presenter::Record

#as_json, #as_stderr, #doc?, #docs?, #errors, #errors_without_spaces, #initialize, #message, #status, #to_csv, #to_format, #to_json, #to_pipes, #to_qdf, #to_stderr, #valid?

Constructor Details

This class inherits a constructor from Quandl::Command::Presenter::Record

Instance Method Details

#as_pipesObject



7
8
9
10
11
# File 'lib/quandl/command/presenters/scraper_presenter.rb', line 7

def as_pipes
  pipes = [object.name]
  #pipes += [object.scraper_url, object.git_url, object.git_reference].compact if doc?
  pipes
end

#detailObject



17
18
19
# File 'lib/quandl/command/presenters/scraper_presenter.rb', line 17

def detail
  object.try(:type)
end

#idObject



13
14
15
# File 'lib/quandl/command/presenters/scraper_presenter.rb', line 13

def id
  object.try(:name)
end