Class: Eaternet::Lives_1_0::ValidatedObject

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/eaternet/lives_1_0.rb

Direct Known Subclasses

Business, FeedInfo, Inspection, Legend, LegendGroup, Violation

Defined Under Namespace

Classes: TypeValidator

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ ValidatedObject

Returns a new instance of ValidatedObject.


48
49
50
51
# File 'lib/eaternet/lives_1_0.rb', line 48

def initialize(&block)
  block.call(self)
  check_validations!
end