Class: SentrySummary::Event
- Inherits:
-
Object
- Object
- SentrySummary::Event
- Defined in:
- lib/sentry-summary/sentry.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#issue_id ⇒ Object
readonly
Returns the value of attribute issue_id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#route ⇒ Object
readonly
Returns the value of attribute route.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id, issue_id, date, route, metadata) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(id, issue_id, date, route, metadata) ⇒ Event
Returns a new instance of Event.
139 140 141 142 143 144 145 |
# File 'lib/sentry-summary/sentry.rb', line 139 def initialize(id, issue_id, date, route, ) @id = id @issue_id = issue_id @date = DateTime.parse(date).to_time @route = route @metadata = end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
137 138 139 |
# File 'lib/sentry-summary/sentry.rb', line 137 def date @date end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
137 138 139 |
# File 'lib/sentry-summary/sentry.rb', line 137 def id @id end |
#issue_id ⇒ Object (readonly)
Returns the value of attribute issue_id.
137 138 139 |
# File 'lib/sentry-summary/sentry.rb', line 137 def issue_id @issue_id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
137 138 139 |
# File 'lib/sentry-summary/sentry.rb', line 137 def @metadata end |
#route ⇒ Object (readonly)
Returns the value of attribute route.
137 138 139 |
# File 'lib/sentry-summary/sentry.rb', line 137 def route @route end |