Class: Admincredible::Resources::Setting
Instance Attribute Summary
#client
Instance Method Summary
collapse
#config, #connection, #initialize
Instance Method Details
#all ⇒ Object
4
5
6
|
# File 'lib/admincredible/resources/Setting.rb', line 4
def all
client.jget('settings', 'index')['data']
end
|
#create(*args) ⇒ Object
12
13
14
|
# File 'lib/admincredible/resources/Setting.rb', line 12
def create(*args)
client.jpost('settings', 'create', args.)['data']
end
|
#first ⇒ Object
8
9
10
|
# File 'lib/admincredible/resources/Setting.rb', line 8
def first
client.jget('settings', 'read')['data']
end
|
#update(*args) ⇒ Object
16
17
18
|
# File 'lib/admincredible/resources/Setting.rb', line 16
def update(*args)
client.jpost('settings', 'update', args.)['data']
end
|