Class: ExampleObjects::ActiveRecordExample
- Inherits:
-
Object
- Object
- ExampleObjects::ActiveRecordExample
- Includes:
- Hublot
- Defined in:
- lib/example_objects/active_record_example.rb
Constant Summary
Constants included from Hublot
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
Instance Method Summary collapse
-
#initialize ⇒ ActiveRecordExample
constructor
A new instance of ActiveRecordExample.
Methods included from Hublot
Constructor Details
#initialize ⇒ ActiveRecordExample
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_at ⇒ Object
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 |