Class: PUNK::Service
- Includes:
- Loggable, Publishable
- Defined in:
- lib/punk/framework/service.rb
Direct Known Subclasses
Action, ChallengeClaimService, CreateIdentitiesService, GenerateSwaggerService, ProveClaimService, SecretService, View
Instance Attribute Summary
Attributes included from Validatable
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Loggable
#exception, #logger, #profile_debug, #profile_info, #profile_trace
Methods inherited from Runnable
args, #method_missing, #respond_to_missing?
Methods included from Validatable
#default_validation_helpers_options, #get_column_value, #valid?, #validate, #validates_not_empty
Methods included from Plugins::Validation::InstanceMethods
#validates_email, #validates_event, #validates_phone, #validates_state, #validates_url
Methods inherited from Settings
#method_missing, #respond_to_missing?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PUNK::Runnable
Class Method Details
.run(**kwargs) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/punk/framework/service.rb', line 15 def self.run(**kwargs) service = new service.send(:_init, **kwargs) service.send(:_run) hijack = service.send(:_callbacks) service.is_a?(View) && hijack.is_a?(View) ? hijack : service end |
Instance Method Details
#process ⇒ Object
27 28 29 |
# File 'lib/punk/framework/service.rb', line 27 def process raise NotImplemented, "view must provide process method" end |
#result ⇒ Object
23 24 25 |
# File 'lib/punk/framework/service.rb', line 23 def result @_result end |