Class: Webhookdb::Increase::WebhookSignature
- Inherits:
-
TypedStruct
- Object
- TypedStruct
- Webhookdb::Increase::WebhookSignature
- Defined in:
- lib/webhookdb/increase.rb
Instance Attribute Summary collapse
-
#t ⇒ Object
Returns the value of attribute t.
-
#v1 ⇒ Object
Returns the value of attribute v1.
Instance Method Summary collapse
Methods inherited from TypedStruct
#[], #_apply, #as_json, #change, #initialize
Constructor Details
This class inherits a constructor from Webhookdb::TypedStruct
Instance Attribute Details
#t ⇒ Object
Returns the value of attribute t.
27 28 29 |
# File 'lib/webhookdb/increase.rb', line 27 def t @t end |
#v1 ⇒ Object
Returns the value of attribute v1.
27 28 29 |
# File 'lib/webhookdb/increase.rb', line 27 def v1 @v1 end |
Instance Method Details
#_defaults ⇒ Object
29 |
# File 'lib/webhookdb/increase.rb', line 29 def _defaults = {t: nil, v1: []} |
#format ⇒ Object
31 32 33 34 35 36 |
# File 'lib/webhookdb/increase.rb', line 31 def format parts = [] parts << "t=#{self.t.utc.iso8601}" if self.t self.v1&.each { |v1| parts << "v1=#{v1}" } return parts.join(",") end |