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



3
4
5
# File 'lib/action_kit_rest/language.rb', line 3

def base_path
  'language'
end

#find(iso_code) ⇒ Object



7
8
9
10
# File 'lib/action_kit_rest/language.rb', line 7

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