Class: CatEngine::Response
- Inherits:
-
Struct
- Object
- Struct
- CatEngine::Response
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Conversion
- Defined in:
- lib/cat_engine/response.rb
Defined Under Namespace
Classes: XMLMapper
Instance Attribute Summary collapse
-
#before ⇒ Object
Returns the value of attribute before.
-
#id ⇒ Object
Returns the value of attribute id.
-
#promis_id ⇒ Object
Returns the value of attribute promis_id.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attributes = nil) ⇒ Response
constructor
A new instance of Response.
- #persisted? ⇒ Boolean
- #xml=(xml) ⇒ Object
Constructor Details
#initialize(attributes = nil) ⇒ Response
Returns a new instance of Response.
9 10 11 |
# File 'lib/cat_engine/response.rb', line 9 def initialize attributes = nil assign_attributes(attributes || {}) end |
Instance Attribute Details
#before ⇒ Object
Returns the value of attribute before
5 6 7 |
# File 'lib/cat_engine/response.rb', line 5 def before @before end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/cat_engine/response.rb', line 5 def id @id end |
#promis_id ⇒ Object
Returns the value of attribute promis_id
5 6 7 |
# File 'lib/cat_engine/response.rb', line 5 def promis_id @promis_id end |
#title ⇒ Object
Returns the value of attribute title
5 6 7 |
# File 'lib/cat_engine/response.rb', line 5 def title @title end |