Class: Cadenya::Types::ObjectiveEventWebhookData
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveEventWebhookData
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, timestamp: nil, data: nil) ⇒ ObjectiveEventWebhookData
constructor
A new instance of ObjectiveEventWebhookData.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, timestamp: nil, data: nil) ⇒ ObjectiveEventWebhookData
Returns a new instance of ObjectiveEventWebhookData.
7705 7706 7707 7708 7709 |
# File 'lib/cadenya/types.rb', line 7705 def initialize(type: nil, timestamp: nil, data: nil) @type = type @timestamp = @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7703 7704 7705 |
# File 'lib/cadenya/types.rb', line 7703 def data @data end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
7703 7704 7705 |
# File 'lib/cadenya/types.rb', line 7703 def @timestamp end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7703 7704 7705 |
# File 'lib/cadenya/types.rb', line 7703 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
7711 7712 7713 7714 7715 7716 7717 |
# File 'lib/cadenya/types.rb', line 7711 def self.from_json(data) new( type: data["type"], timestamp: data["timestamp"].nil? ? nil : Time.iso8601(data["timestamp"]), data: data["data"].nil? ? nil : Types::ObjectiveEventWebhookDataData.from_json(data["data"]), ) end |