Class: Webhookdb::SpecHelpers::Service::FakeSentryScope

Inherits:
Object
  • Object
show all
Defined in:
lib/webhookdb/spec_helpers/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFakeSentryScope

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

#tagsObject

Returns the value of attribute tags.



79
80
81
# File 'lib/webhookdb/spec_helpers/service.rb', line 79

def tags
  @tags
end

#userObject

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 set_tags(tags)
  @tags.merge!(tags)
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