Class: SentrySummary::Sentry
- Inherits:
-
Object
- Object
- SentrySummary::Sentry
- Defined in:
- lib/sentry-summary/sentry.rb
Instance Attribute Summary collapse
-
#organization ⇒ Object
writeonly
Sets the attribute organization.
-
#token ⇒ Object
writeonly
Sets the attribute token.
Instance Method Summary collapse
- #events(issue, since = nil) ⇒ Object
-
#initialize(&block) ⇒ Sentry
constructor
A new instance of Sentry.
- #issues(project, since = nil) ⇒ Object
- #latest_samples(project) ⇒ Object
Constructor Details
#initialize(&block) ⇒ Sentry
Returns a new instance of Sentry.
8 9 10 |
# File 'lib/sentry-summary/sentry.rb', line 8 def initialize(&block) block.call(self) end |
Instance Attribute Details
#organization=(value) ⇒ Object (writeonly)
Sets the attribute organization
6 7 8 |
# File 'lib/sentry-summary/sentry.rb', line 6 def organization=(value) @organization = value end |
#token=(value) ⇒ Object (writeonly)
Sets the attribute token
6 7 8 |
# File 'lib/sentry-summary/sentry.rb', line 6 def token=(value) @token = value end |
Instance Method Details
#events(issue, since = nil) ⇒ Object
25 26 27 28 29 |
# File 'lib/sentry-summary/sentry.rb', line 25 def events(issue, since = nil) paginate("/issues/#{issue}/events/", since) do |event| Event.build(event.merge(issue_id: issue)) end end |