Class: Kitties::V1::Client
- Defined in:
- lib/kittyverse/api/versions.rb
Overview
Instance Method Summary collapse
- #get_cattributes ⇒ Object
- #get_colors_body ⇒ Object
- #get_colors_eyes ⇒ Object
- #get_colors_secondary ⇒ Object
- #get_colors_tertiary ⇒ Object
-
#get_kitty(id) ⇒ Object
(also: #get_kitten)
use get_kitty_by_id - why? why not?.
-
#initialize ⇒ Client
constructor
A new instance of Client.
Methods inherited from Client
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
66 67 68 69 |
# File 'lib/kittyverse/api/versions.rb', line 66 def initialize super( base_uri: "https://public.api.cryptokitties.co/v1", token: Kitties.configuration.token ) end |
Instance Method Details
#get_cattributes ⇒ Object
71 |
# File 'lib/kittyverse/api/versions.rb', line 71 def get_cattributes() get('/cattributes'); end |
#get_colors_body ⇒ Object
75 |
# File 'lib/kittyverse/api/versions.rb', line 75 def get_colors_body() get('/colors/body'); end |
#get_colors_eyes ⇒ Object
76 |
# File 'lib/kittyverse/api/versions.rb', line 76 def get_colors_eyes() get('/colors/eyes'); end |
#get_colors_secondary ⇒ Object
77 |
# File 'lib/kittyverse/api/versions.rb', line 77 def get_colors_secondary() get('/colors/secondary'); end |
#get_colors_tertiary ⇒ Object
78 |
# File 'lib/kittyverse/api/versions.rb', line 78 def get_colors_tertiary() get('/colors/tertiary'); end |
#get_kitty(id) ⇒ Object Also known as: get_kitten
use get_kitty_by_id - why? why not?
72 |
# File 'lib/kittyverse/api/versions.rb', line 72 def get_kitty( id ) get("/kitties/#{id}"); end |