Module: FootballApi::Requestable::ClassMethods
- Defined in:
- lib/football_api/mixins/requestable.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#json_id ⇒ Object
Returns the value of attribute json_id.
-
#params_method ⇒ Object
Returns the value of attribute params_method.
Instance Method Summary collapse
-
#api_options(options = {}) ⇒ Object
Options can be any of the class attributes.
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
8 9 10 |
# File 'lib/football_api/mixins/requestable.rb', line 8 def action @action end |
#json_id ⇒ Object
Returns the value of attribute json_id.
8 9 10 |
# File 'lib/football_api/mixins/requestable.rb', line 8 def json_id @json_id end |
#params_method ⇒ Object
Returns the value of attribute params_method.
8 9 10 |
# File 'lib/football_api/mixins/requestable.rb', line 8 def params_method @params_method end |
Instance Method Details
#api_options(options = {}) ⇒ Object
Options can be any of the class attributes
12 13 14 15 16 |
# File 'lib/football_api/mixins/requestable.rb', line 12 def ( = {}) self.action = .delete(:action).to_s if [:action] self.json_id = .delete(:json_key) if [:json_key] self.params_method = .delete(:action_params) end |