Class: ExampleObjects::ActiveRecordExample

Inherits:
Object
  • Object
show all
Includes:
Hublot
Defined in:
lib/example_objects/active_record_example.rb

Constant Summary

Constants included from Hublot

Hublot::VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Hublot

#pretty

Constructor Details

#initializeActiveRecordExample

Returns a new instance of ActiveRecordExample.



8
9
10
# File 'lib/example_objects/active_record_example.rb', line 8

def initialize
  @created_at = Time.now
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



6
7
8
# File 'lib/example_objects/active_record_example.rb', line 6

def created_at
  @created_at
end