Class: Compel::Contract
- Inherits:
-
Object
- Object
- Compel::Contract
- Defined in:
- lib/compel/contract.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(object, schema) ⇒ Contract
constructor
A new instance of Contract.
- #validate ⇒ Object
Constructor Details
#initialize(object, schema) ⇒ Contract
Returns a new instance of Contract.
7 8 9 10 |
# File 'lib/compel/contract.rb', line 7 def initialize(object, schema) @object = object @schema = schema end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
5 6 7 |
# File 'lib/compel/contract.rb', line 5 def object @object end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
5 6 7 |
# File 'lib/compel/contract.rb', line 5 def schema @schema end |