Exception: Iron::Schema::InvalidSchema

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/iron/schema.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(problems) ⇒ InvalidSchema

Returns a new instance of InvalidSchema.



12
13
14
15
# File 'app/models/iron/schema.rb', line 12

def initialize(problems)
  @problems = Array(problems)
  super(@problems.join("\n"))
end

Instance Attribute Details

#problemsObject (readonly)

Returns the value of attribute problems.



10
11
12
# File 'app/models/iron/schema.rb', line 10

def problems
  @problems
end