Sha256: 1c0f8aa364381716ee84c5329adb4d0970dad161c88235c445250ba3b8dcf0b1

Contents?: true

Size: 587 Bytes

Versions: 7

Compression:

Stored size: 587 Bytes

Contents

# frozen_string_literal: true

module SlackRubyBot
  module MVC
    module Model
      class Base
        include ActiveSupport::Callbacks

        class << self
          def inherited(klass) # :nodoc:
            super
          end
        end

        attr_reader :client, :data, :match

        # Hand off the latest updated objects to the +model+ and +view+ and
        # update our +client+, +data+, and +match+ accessors.
        def use_args(client, data, match)
          @client = client
          @data = data
          @match = match
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
slackrb-0.17.1 lib/slack-ruby-bot/mvc/model/base.rb
slackrb-0.17.0 lib/slack-ruby-bot/mvc/model/base.rb
slack-ruby-bot-0.16.1 lib/slack-ruby-bot/mvc/model/base.rb
slack-ruby-bot-0.16.0 lib/slack-ruby-bot/mvc/model/base.rb
slack-ruby-bot-0.15.0 lib/slack-ruby-bot/mvc/model/base.rb
slack-ruby-bot-0.14.0 lib/slack-ruby-bot/mvc/model/base.rb
slack-ruby-bot-0.13.0 lib/slack-ruby-bot/mvc/model/base.rb