Class: PUNK::PendingSessionView
Constant Summary
Constants included from Renderable
Instance Attribute Summary
Attributes included from Validatable
Instance Method Summary collapse
Methods inherited from View
Methods included from Renderable
#inspect, #render, #template, #to_csv, #to_h, #to_html, #to_json, #to_s, #to_xml
Methods inherited from Service
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?, #validates_not_empty
Methods included from PUNK::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
Instance Method Details
#process ⇒ Object
18 19 20 |
# File 'lib/punk/views/sessions/pending.rb', line 18 def process "sessions/pending" end |
#validate ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/punk/views/sessions/pending.rb', line 7 def validate validates_not_null :session validates_not_empty :session return if session.blank? validates_type Session, :session validates_state :session, :pending validates_not_null :message validates_not_empty :message validates_type String, :message end |