Class: Kitties::V1::Client

Inherits:
Client
  • Object
show all
Defined in:
lib/kittyverse/api/versions.rb

Overview

Instance Method Summary collapse

Methods inherited from Client

#get

Constructor Details

#initializeClient

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_cattributesObject



71
# File 'lib/kittyverse/api/versions.rb', line 71

def get_cattributes()      get('/cattributes'); end

#get_colors_bodyObject



75
# File 'lib/kittyverse/api/versions.rb', line 75

def get_colors_body()      get('/colors/body'); end

#get_colors_eyesObject



76
# File 'lib/kittyverse/api/versions.rb', line 76

def get_colors_eyes()      get('/colors/eyes'); end

#get_colors_secondaryObject



77
# File 'lib/kittyverse/api/versions.rb', line 77

def get_colors_secondary() get('/colors/secondary'); end

#get_colors_tertiaryObject



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