Class: TeamsConnector::Testing
Instance Attribute Summary collapse
-
#requests ⇒ Object
readonly
Returns the value of attribute requests.
Instance Method Summary collapse
-
#initialize ⇒ Testing
constructor
A new instance of Testing.
- #perform_request(channel, template, content) ⇒ Object
Constructor Details
#initialize ⇒ Testing
Returns a new instance of Testing.
7 8 9 |
# File 'lib/teams_connector/testing.rb', line 7 def initialize @requests = [] end |
Instance Attribute Details
#requests ⇒ Object (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 |