Module: StrapiRuby::Interface
Instance Method Summary
collapse
#validate_config, #validate_data_presence, #validate_options
Instance Method Details
#delete(options = {}) ⇒ Object
17
18
19
|
# File 'lib/strapi_ruby/interface.rb', line 17
def delete(options = {})
request(:delete, options)
end
|
#escape_empty_answer(answer) ⇒ Object
21
22
23
24
25
|
# File 'lib/strapi_ruby/interface.rb', line 21
def escape_empty_answer(answer)
return answer.error.message if answer.data.nil? && answer.error
yield
end
|
#get(options = {}) ⇒ Object
5
6
7
|
# File 'lib/strapi_ruby/interface.rb', line 5
def get(options = {})
request(:get, options)
end
|
#post(options = {}) ⇒ Object
9
10
11
|
# File 'lib/strapi_ruby/interface.rb', line 9
def post(options = {})
request(:post, options)
end
|
#put(options = {}) ⇒ Object
13
14
15
|
# File 'lib/strapi_ruby/interface.rb', line 13
def put(options = {})
request(:put, options)
end
|