Class: ApiService::BaseAction
- Inherits:
-
Object
- Object
- ApiService::BaseAction
- Defined in:
- lib/api_service/base_action.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #abort_on_fail? ⇒ Boolean
- #fail_http_status ⇒ Object
-
#initialize(name, options) ⇒ BaseAction
constructor
A new instance of BaseAction.
Constructor Details
#initialize(name, options) ⇒ BaseAction
5 6 7 8 |
# File 'lib/api_service/base_action.rb', line 5 def initialize(name, ) = .merge() @name = name end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/api_service/base_action.rb', line 3 def end |
Instance Method Details
#abort_on_fail? ⇒ Boolean
10 11 12 |
# File 'lib/api_service/base_action.rb', line 10 def abort_on_fail? ![:permissive] end |
#fail_http_status ⇒ Object
14 15 16 |
# File 'lib/api_service/base_action.rb', line 14 def fail_http_status [:fail_http_status] end |