Class: SlackScratcher::Model::Chats

Inherits:
Object
  • Object
show all
Defined in:
lib/slack_scratcher/model/chats.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, channel, users) ⇒ Chats

Returns a new instance of Chats


6
7
8
9
10
11
12
13
14
15
16
# File 'lib/slack_scratcher/model/chats.rb', line 6

def initialize(data, channel, users)
  if !data.is_a?(Array) || !users.is_a?(Hash) || !channel.is_a?(Hash)
    fail ArgumentError
  end

  @data = data
  @users = users
  @channel = channel

  @refined_data = refine
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data


4
5
6
# File 'lib/slack_scratcher/model/chats.rb', line 4

def data
  @data
end

#refined_dataObject (readonly)

Returns the value of attribute refined_data


4
5
6
# File 'lib/slack_scratcher/model/chats.rb', line 4

def refined_data
  @refined_data
end