Module: Lunetas::Candy::MethodStrategy::InstanceMethods
- Defined in:
- lib/lunetas/candy/method_strategy.rb
Instance Method Summary collapse
-
#before ⇒ nil
Called before getting the response.
-
#delete ⇒ nil
The response of the DELETE HTTP method.
-
#get ⇒ nil
The response of the GET HTTP method.
-
#head ⇒ nil
The response of the HEAD HTTP method.
-
#options ⇒ nil
The response of the OPTIONS HTTP method.
-
#other_verb(verb) ⇒ nil
The response of the any other HTTP method.
-
#post ⇒ nil
The response of the POST HTTP method.
-
#put ⇒ nil
The response of the PUT HTTP method.
-
#trace ⇒ nil
The response of the TRACE HTTP method.
Instance Method Details
#before ⇒ nil
Called before getting the response. Useful to set instance variables that will be used in the methods. Analog to a before filter in Rails.
11 12 13 |
# File 'lib/lunetas/candy/method_strategy.rb', line 11 def before nil end |
#delete ⇒ nil
The response of the DELETE HTTP method.
43 44 45 |
# File 'lib/lunetas/candy/method_strategy.rb', line 43 def delete raise Lunetas::Error::APIError end |
#get ⇒ nil
The response of the GET HTTP method.
19 20 21 |
# File 'lib/lunetas/candy/method_strategy.rb', line 19 def get raise Lunetas::Error::APIError end |
#head ⇒ nil
The response of the HEAD HTTP method.
51 52 53 |
# File 'lib/lunetas/candy/method_strategy.rb', line 51 def head raise Lunetas::Error::APIError end |
#options ⇒ nil
The response of the OPTIONS HTTP method.
67 68 69 |
# File 'lib/lunetas/candy/method_strategy.rb', line 67 def raise Lunetas::Error::APIError end |
#other_verb(verb) ⇒ nil
The response of the any other HTTP method.
76 77 78 |
# File 'lib/lunetas/candy/method_strategy.rb', line 76 def other_verb(verb) raise Lunetas::Error::APIError end |
#post ⇒ nil
The response of the POST HTTP method.
27 28 29 |
# File 'lib/lunetas/candy/method_strategy.rb', line 27 def post raise Lunetas::Error::APIError end |