Module: Railjet::Policy
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
Methods included from Validator
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
14 15 16 |
# File 'lib/railjet/policy.rb', line 14 def context @context end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
14 15 16 |
# File 'lib/railjet/policy.rb', line 14 def object @object end |
Instance Method Details
#initialize(context, object) ⇒ Object
10 11 12 |
# File 'lib/railjet/policy.rb', line 10 def initialize(context, object) @context, @object = context, object end |