Class: Obutts::Client
- Inherits:
-
Object
- Object
- Obutts::Client
- Defined in:
- lib/obutts/client.rb
Constant Summary collapse
- DOMAIN =
"http://api.obutts.ru"
Instance Method Summary collapse
Instance Method Details
#butts(start = 0, count = 1, order = 'id') ⇒ Object
8 9 10 |
# File 'lib/obutts/client.rb', line 8 def butts(start = 0, count = 1, order = 'id') get "/butts/#{start}/#{count}/#{order}" end |
#by_id(id) ⇒ Object
12 13 14 |
# File 'lib/obutts/client.rb', line 12 def by_id(id) get "/butts/get/#{id}" end |
#count ⇒ Object
16 17 18 |
# File 'lib/obutts/client.rb', line 16 def count get "/butts/count" end |