Class: Ecko::Plugins::Sponsor::SchemaValidator::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ecko/plugins/sponsor/schema_validator.rb

Direct Known Subclasses

GatewayValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#schemaObject

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