Module: Driftrock::Service::DriftrockModel::DependencyInjection
- Defined in:
- lib/driftrock-service/driftrock_model.rb
Instance Method Summary collapse
- #get_from_api_method ⇒ Object
- #post_to_api_method ⇒ Object
- #put_to_api_method ⇒ Object
- #set_get_from_api_method(method) ⇒ Object
- #set_post_to_api_method(method) ⇒ Object
- #set_put_to_api_method(method) ⇒ Object
Instance Method Details
#get_from_api_method ⇒ Object
26 27 28 29 |
# File 'lib/driftrock-service/driftrock_model.rb', line 26 def get_from_api_method @get_from_api_method ||= self.public_method(:model_get) @get_from_api_method end |
#post_to_api_method ⇒ Object
16 17 18 19 |
# File 'lib/driftrock-service/driftrock_model.rb', line 16 def post_to_api_method @post_to_api_method ||= self.public_method(:model_post) @post_to_api_method end |
#put_to_api_method ⇒ Object
21 22 23 24 |
# File 'lib/driftrock-service/driftrock_model.rb', line 21 def put_to_api_method @put_to_api_method ||= self.public_method(:model_put) @put_to_api_method end |
#set_get_from_api_method(method) ⇒ Object
12 13 14 |
# File 'lib/driftrock-service/driftrock_model.rb', line 12 def set_get_from_api_method(method) @get_from_api_method = method end |
#set_post_to_api_method(method) ⇒ Object
4 5 6 |
# File 'lib/driftrock-service/driftrock_model.rb', line 4 def set_post_to_api_method(method) @post_to_api_method = method end |
#set_put_to_api_method(method) ⇒ Object
8 9 10 |
# File 'lib/driftrock-service/driftrock_model.rb', line 8 def set_put_to_api_method(method) @put_to_api_method = method end |