Class: Interage::Request::Builder
- Inherits:
-
Object
- Object
- Interage::Request::Builder
- Includes:
- ActiveModel::Model
- Defined in:
- lib/interage/request/builder.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(attributes = {}) ⇒ Builder
constructor
A new instance of Builder.
- #persisted? ⇒ Boolean
Constructor Details
#initialize(attributes = {}) ⇒ Builder
Returns a new instance of Builder.
10 11 12 13 14 |
# File 'lib/interage/request/builder.rb', line 10 def initialize(attributes = {}) mount_errors(attributes.delete(:errors)) super(assigned_attributes(attributes)) end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/interage/request/builder.rb', line 8 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/interage/request/builder.rb', line 8 def id @id end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/interage/request/builder.rb', line 8 def updated_at @updated_at end |
Instance Method Details
#persisted? ⇒ Boolean
16 17 18 |
# File 'lib/interage/request/builder.rb', line 16 def persisted? id.present? end |