Class: Preverus::WebhookEvent

Inherits:
ApiResult show all
Defined in:
lib/preverus/results.rb

Instance Attribute Summary collapse

Attributes inherited from ApiResult

#data

Instance Method Summary collapse

Methods inherited from ApiResult

#[], #to_h

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_bodyObject (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

#idObject



74
75
76
# File 'lib/preverus/results.rb', line 74

def id
  self["id"].to_s
end

#typeObject



78
79
80
# File 'lib/preverus/results.rb', line 78

def type
  self["type"].to_s
end