Class: TeamsConnector::Testing

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTesting

Returns a new instance of Testing.



7
8
9
# File 'lib/teams_connector/testing.rb', line 7

def initialize
  @requests = []
end

Instance Attribute Details

#requestsObject (readonly)

Returns the value of attribute requests.



5
6
7
# File 'lib/teams_connector/testing.rb', line 5

def requests
  @requests
end

Instance Method Details

#perform_request(channel, template, content) ⇒ Object



11
12
13
# File 'lib/teams_connector/testing.rb', line 11

def perform_request(channel, template, content)
  @requests.push({ channel: channel, content: content, template: template, time: Time.now })
end