Class: Ecko::Plugins::Sponsor::SchemaValidator::Base
- Inherits:
-
Object
- Object
- Ecko::Plugins::Sponsor::SchemaValidator::Base
- Defined in:
- lib/ecko/plugins/sponsor/schema_validator.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#schema ⇒ Object
Returns the value of attribute schema.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(schema) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(schema) ⇒ Base
Returns a new instance of Base.
14 15 16 |
# File 'lib/ecko/plugins/sponsor/schema_validator.rb', line 14 def initialize(schema) @schema = schema end |
Instance Attribute Details
#schema ⇒ Object
Returns the value of attribute schema.
12 13 14 |
# File 'lib/ecko/plugins/sponsor/schema_validator.rb', line 12 def schema @schema end |
Class Method Details
.validate(schema) ⇒ Object
19 20 21 |
# File 'lib/ecko/plugins/sponsor/schema_validator.rb', line 19 def validate(schema) new(schema).validate end |