Class: Kitties::V0::Client
- Defined in:
- lib/kittyverse/api/versions.rb
Instance Method Summary collapse
- #get_auctions(**params) ⇒ Object
- #get_cattributes ⇒ Object
- #get_kitties(**params) ⇒ Object
-
#get_kitty(id) ⇒ Object
(also: #get_kitten)
use get_kitty_by_id - why? why not?.
- #get_network_status ⇒ Object
- #get_user(addr) ⇒ Object
-
#initialize ⇒ Client
constructor
A new instance of Client.
Methods inherited from Client
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
41 42 43 |
# File 'lib/kittyverse/api/versions.rb', line 41 def initialize super( base_uri: "https://api.cryptokitties.co" ) end |
Instance Method Details
#get_auctions(**params) ⇒ Object
50 |
# File 'lib/kittyverse/api/versions.rb', line 50 def get_auctions( **params ) get( '/auctions', **params ); end |
#get_cattributes ⇒ Object
45 |
# File 'lib/kittyverse/api/versions.rb', line 45 def get_cattributes() get('/cattributes'); end |
#get_kitties(**params) ⇒ Object
49 |
# File 'lib/kittyverse/api/versions.rb', line 49 def get_kitties( **params ) get( '/kitties', **params ); end |
#get_kitty(id) ⇒ Object Also known as: get_kitten
use get_kitty_by_id - why? why not?
46 |
# File 'lib/kittyverse/api/versions.rb', line 46 def get_kitty( id ) get("/kitties/#{id}"); end |
#get_network_status ⇒ Object
53 |
# File 'lib/kittyverse/api/versions.rb', line 53 def get_network_status() get( '/network-status' ); end |
#get_user(addr) ⇒ Object
51 |
# File 'lib/kittyverse/api/versions.rb', line 51 def get_user( addr ) get( "/user/#{addr}" ); end |