Class: Cabot
- Inherits:
-
Object
- Object
- Cabot
- Defined in:
- lib/cabot.rb
Overview
Cabot gem
Defined Under Namespace
Modules: Create, Index, Show, Update
Instance Attribute Summary collapse
-
#model ⇒ Object
Returns the value of attribute model.
-
#result ⇒ Object
Returns the value of attribute result.
-
#serializer ⇒ Object
Returns the value of attribute serializer.
Instance Method Summary collapse
-
#initialize(result) ⇒ Cabot
constructor
A new instance of Cabot.
Constructor Details
#initialize(result) ⇒ Cabot
Returns a new instance of Cabot.
5 6 7 8 9 |
# File 'lib/cabot.rb', line 5 def initialize(result) @result = result @model = result[:model] @serializer = result[:serializer] end |
Instance Attribute Details
#model ⇒ Object
Returns the value of attribute model.
3 4 5 |
# File 'lib/cabot.rb', line 3 def model @model end |
#result ⇒ Object
Returns the value of attribute result.
3 4 5 |
# File 'lib/cabot.rb', line 3 def result @result end |
#serializer ⇒ Object
Returns the value of attribute serializer.
3 4 5 |
# File 'lib/cabot.rb', line 3 def serializer @serializer end |