class Oboobs::Client
Constants
- DOMAIN
Public Instance Methods
boobs(start = 0, count = 1, order = 'id')
click to toggle source
# File lib/oboobs/client.rb, line 8 def boobs(start = 0, count = 1, order = 'id') get "/boobs/#{start}/#{count}/#{order}" end
by_id(id)
click to toggle source
# File lib/oboobs/client.rb, line 12 def by_id(id) get "/boobs/get/#{id}" end
count()
click to toggle source
# File lib/oboobs/client.rb, line 16 def count get "/boobs/count" end
Private Instance Methods
get(path)
click to toggle source
# File lib/oboobs/client.rb, line 22 def get(path) ::JSON.parse RestClient.get("#{DOMAIN}#{path}").body end