Class: SlackRubyBot::MVC::Model::Base

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Callbacks
Defined in:
lib/slack-ruby-bot/mvc/model/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



13
14
15
# File 'lib/slack-ruby-bot/mvc/model/base.rb', line 13

def client
  @client
end

#dataObject (readonly)

Returns the value of attribute data.



13
14
15
# File 'lib/slack-ruby-bot/mvc/model/base.rb', line 13

def data
  @data
end

#matchObject (readonly)

Returns the value of attribute match.



13
14
15
# File 'lib/slack-ruby-bot/mvc/model/base.rb', line 13

def match
  @match
end

Class Method Details

.inherited(klass) ⇒ Object

:nodoc:



8
9
10
# File 'lib/slack-ruby-bot/mvc/model/base.rb', line 8

def inherited(klass) # :nodoc:
  super
end

Instance Method Details

#use_args(client, data, match) ⇒ Object

Hand off the latest updated objects to the model and view and update our client, data, and match accessors.



17
18
19
20
21
# File 'lib/slack-ruby-bot/mvc/model/base.rb', line 17

def use_args(client, data, match)
  @client = client
  @data = data
  @match = match
end