Class: ActionKitRest::Language

Inherits:
Base
  • Object
show all
Defined in:
lib/action_kit_rest/language.rb

Instance Method Summary collapse

Methods inherited from Base

#create, #get, #list, #normalized_base_path, #update

Instance Method Details

#base_pathObject



5
6
7
# File 'lib/action_kit_rest/language.rb', line 5

def base_path
  'language'
end

#find(iso_code) ⇒ Object



9
10
11
12
# File 'lib/action_kit_rest/language.rb', line 9

def find(iso_code)
  response = list(iso_code: iso_code)
  response.obj.first
end