Class: Gpdb::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/gpdb/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Model

Returns a new instance of Model.



7
8
9
10
11
# File 'lib/gpdb/model.rb', line 7

def initialize(attributes = {})
  attributes.each do |name, value|
    public_send("#{name}=", value)
  end
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



5
6
7
# File 'lib/gpdb/model.rb', line 5

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/gpdb/model.rb', line 5

def id
  @id
end

#updated_atObject

Returns the value of attribute updated_at.



5
6
7
# File 'lib/gpdb/model.rb', line 5

def updated_at
  @updated_at
end