Class: PUNK::View

Inherits:
Service show all
Includes:
Renderable
Defined in:
lib/punk/framework/view.rb

Direct Known Subclasses

Fail, Info

Constant Summary

Constants included from Renderable

Renderable::FORMATS

Instance Attribute Summary

Attributes included from Validatable

#errors

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Renderable

#inspect, #render, #template, #to_csv, #to_h, #to_html, #to_json, #to_s, #to_xml

Methods inherited from Service

#result, run

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_parse_id, #validates_phone, #validates_state, #validates_subdomain, #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

.present(**kwargs) ⇒ Object



7
8
9
# File 'lib/punk/framework/view.rb', line 7

def self.present(**kwargs)
  profile_info("present", kwargs) { run(**kwargs) }
end

Instance Method Details

#processObject

Raises:



11
12
13
# File 'lib/punk/framework/view.rb', line 11

def process
  raise NotImplemented, "view must provide process method"
end