Class: Webhookdb::SpecHelpers::Service::FakeSentryScope
- Inherits:
-
Object
- Object
- Webhookdb::SpecHelpers::Service::FakeSentryScope
- Defined in:
- lib/webhookdb/spec_helpers/service.rb
Instance Attribute Summary collapse
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize ⇒ FakeSentryScope
constructor
A new instance of FakeSentryScope.
- #set_tags(tags) ⇒ Object
- #set_user(user) ⇒ Object
Constructor Details
#initialize ⇒ FakeSentryScope
Returns a new instance of FakeSentryScope.
81 82 83 84 |
# File 'lib/webhookdb/spec_helpers/service.rb', line 81 def initialize @user = {} @tags = {} end |
Instance Attribute Details
#tags ⇒ Object
Returns the value of attribute tags.
79 80 81 |
# File 'lib/webhookdb/spec_helpers/service.rb', line 79 def @tags end |
#user ⇒ Object
Returns the value of attribute user.
79 80 81 |
# File 'lib/webhookdb/spec_helpers/service.rb', line 79 def user @user end |
Instance Method Details
#set_tags(tags) ⇒ Object
90 91 92 |
# File 'lib/webhookdb/spec_helpers/service.rb', line 90 def () @tags.merge!() end |
#set_user(user) ⇒ Object
86 87 88 |
# File 'lib/webhookdb/spec_helpers/service.rb', line 86 def set_user(user) @user.merge!(user) end |