Class: Cabot

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

Overview

Cabot gem

Defined Under Namespace

Modules: Create, Index, Show, Update

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#modelObject

Returns the value of attribute model.



3
4
5
# File 'lib/cabot.rb', line 3

def model
  @model
end

#resultObject

Returns the value of attribute result.



3
4
5
# File 'lib/cabot.rb', line 3

def result
  @result
end

#serializerObject

Returns the value of attribute serializer.



3
4
5
# File 'lib/cabot.rb', line 3

def serializer
  @serializer
end