Class: Gpdb::Model
- Inherits:
-
Object
- Object
- Gpdb::Model
- Defined in:
- lib/gpdb/model.rb
Direct Known Subclasses
REST::Pronunciation::Model, REST::Pronunciation::Target, REST::RecordingRequest::Model, REST::Request, REST::Response
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(attributes = {}) ⇒ Model
constructor
A new instance of Model.
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_at ⇒ Object
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/gpdb/model.rb', line 5 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/gpdb/model.rb', line 5 def id @id end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
5 6 7 |
# File 'lib/gpdb/model.rb', line 5 def updated_at @updated_at end |