Class: ApiMaker::BaseService
- Inherits:
-
ServicePattern::Service
- Object
- ServicePattern::Service
- ApiMaker::BaseService
- Defined in:
- lib/api_maker/base_service.rb
Direct Known Subclasses
Services::CanCan::LoadAbilities, Services::Devise::SignIn, Services::Devise::SignOut, Services::Models::FindOrCreateBy
Instance Attribute Summary collapse
-
#api_maker_args ⇒ Object
readonly
Returns the value of attribute api_maker_args.
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#current_ability ⇒ Object
readonly
Returns the value of attribute current_ability.
Instance Method Summary collapse
-
#initialize(ability: nil, args: {}, api_maker_args: {}, controller: nil) ⇒ BaseService
constructor
A new instance of BaseService.
Constructor Details
#initialize(ability: nil, args: {}, api_maker_args: {}, controller: nil) ⇒ BaseService
Returns a new instance of BaseService.
8 9 10 11 12 13 |
# File 'lib/api_maker/base_service.rb', line 8 def initialize(ability: nil, args: {}, api_maker_args: {}, controller: nil) @args = args @api_maker_args = api_maker_args @controller = controller @current_ability = ability end |
Instance Attribute Details
#api_maker_args ⇒ Object (readonly)
Returns the value of attribute api_maker_args.
4 5 6 |
# File 'lib/api_maker/base_service.rb', line 4 def api_maker_args @api_maker_args end |
#args ⇒ Object (readonly)
Returns the value of attribute args.
4 5 6 |
# File 'lib/api_maker/base_service.rb', line 4 def args @args end |
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
4 5 6 |
# File 'lib/api_maker/base_service.rb', line 4 def controller @controller end |
#current_ability ⇒ Object (readonly)
Returns the value of attribute current_ability.
4 5 6 |
# File 'lib/api_maker/base_service.rb', line 4 def current_ability @current_ability end |