Class: Quotefm::Page

Inherits:
Object show all
Defined in:
lib/quotefm/page.rb

Class Method Summary collapse

Class Method Details

.getByDomain(domain) ⇒ Object



7
8
9
# File 'lib/quotefm/page.rb', line 7

def self.getByDomain domain
  res = HTTParty.get("https://quote.fm/api/page/get/?domain="+domain.to_s)
end

.getByID(id) ⇒ Object



3
4
5
# File 'lib/quotefm/page.rb', line 3

def self.getByID id
  res = HTTParty.get("https://quote.fm/api/page/get/?id="+id.to_s)
end

.listObject



11
12
13
# File 'lib/quotefm/page.rb', line 11

def self.list
  res = HTTParty.get("https://quote.fm/api/page/list")
end