Class: SlackRubyBot::MVC::View::Base
- Inherits:
-
Object
- Object
- SlackRubyBot::MVC::View::Base
- Extended by:
- Forwardable
- Includes:
- ActiveSupport::Callbacks
- Defined in:
- lib/slack-ruby-bot/mvc/view/base.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#match ⇒ Object
readonly
Returns the value of attribute match.
Class Method Summary collapse
-
.inherited(klass) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#use_args(client, data, match) ⇒ Object
Hand off the latest updated objects to the
model
andview
and update ourclient
,data
, andmatch
accessors.
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
16 17 18 |
# File 'lib/slack-ruby-bot/mvc/view/base.rb', line 16 def client @client end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
16 17 18 |
# File 'lib/slack-ruby-bot/mvc/view/base.rb', line 16 def data @data end |
#match ⇒ Object (readonly)
Returns the value of attribute match.
16 17 18 |
# File 'lib/slack-ruby-bot/mvc/view/base.rb', line 16 def match @match end |
Class Method Details
.inherited(klass) ⇒ Object
:nodoc:
11 12 13 |
# File 'lib/slack-ruby-bot/mvc/view/base.rb', line 11 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.
22 23 24 25 26 |
# File 'lib/slack-ruby-bot/mvc/view/base.rb', line 22 def use_args(client, data, match) @client = client @data = data @match = match end |