Class: Preverus::WebhookEvent
- Defined in:
- lib/preverus/results.rb
Instance Attribute Summary collapse
-
#raw_body ⇒ Object
readonly
Returns the value of attribute raw_body.
Attributes inherited from ApiResult
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(data, raw_body) ⇒ WebhookEvent
constructor
A new instance of WebhookEvent.
- #type ⇒ Object
Methods inherited from ApiResult
Constructor Details
#initialize(data, raw_body) ⇒ WebhookEvent
Returns a new instance of WebhookEvent.
69 70 71 72 |
# File 'lib/preverus/results.rb', line 69 def initialize(data, raw_body) super(data) @raw_body = raw_body end |
Instance Attribute Details
#raw_body ⇒ Object (readonly)
Returns the value of attribute raw_body.
67 68 69 |
# File 'lib/preverus/results.rb', line 67 def raw_body @raw_body end |
Instance Method Details
#id ⇒ Object
74 75 76 |
# File 'lib/preverus/results.rb', line 74 def id self["id"].to_s end |
#type ⇒ Object
78 79 80 |
# File 'lib/preverus/results.rb', line 78 def type self["type"].to_s end |