Class: Kintone::Command::Apis

Inherits:
Kintone::Command show all
Defined in:
lib/kintone/command/apis.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Kintone::Command

#initialize

Constructor Details

This class inherits a constructor from Kintone::Command

Class Method Details

.pathObject



4
5
6
# File 'lib/kintone/command/apis.rb', line 4

def self.path
  'apis'
end

Instance Method Details

#getObject



8
9
10
# File 'lib/kintone/command/apis.rb', line 8

def get
  @api.get(@url)
end

#get_details_of(link) ⇒ Object



12
13
14
15
# File 'lib/kintone/command/apis.rb', line 12

def get_details_of(link)
  url = Kintone::Api::BASE_PATH + link
  @api.get(url)
end

#get_details_of_key(key) ⇒ Object



17
18
19
20
21
# File 'lib/kintone/command/apis.rb', line 17

def get_details_of_key(key)
  response = get
  link = response['apis'][key]['link']
  get_details_of(link)
end