Class: CloudAlign::BaseEntity
- Inherits:
-
Object
- Object
- CloudAlign::BaseEntity
- Defined in:
- lib/cloudalign/base_entity.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ BaseEntity
constructor
A new instance of BaseEntity.
Constructor Details
#initialize(args = {}) ⇒ BaseEntity
Returns a new instance of BaseEntity.
5 6 7 8 9 |
# File 'lib/cloudalign/base_entity.rb', line 5 def initialize(args = {}) args.each do |k,v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
3 4 5 |
# File 'lib/cloudalign/base_entity.rb', line 3 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/cloudalign/base_entity.rb', line 3 def id @id end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
3 4 5 |
# File 'lib/cloudalign/base_entity.rb', line 3 def updated_at @updated_at end |