Class: Cadenya::Types::ToolSetEventData_SyncStarted
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSetEventData_SyncStarted
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#sync_started ⇒ Object
readonly
Returns the value of attribute sync_started.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, sync_started: nil) ⇒ ToolSetEventData_SyncStarted
constructor
A new instance of ToolSetEventData_SyncStarted.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, sync_started: nil) ⇒ ToolSetEventData_SyncStarted
Returns a new instance of ToolSetEventData_SyncStarted.
7878 7879 7880 7881 |
# File 'lib/cadenya/types.rb', line 7878 def initialize(type: nil, sync_started: nil) @type = type @sync_started = sync_started end |
Instance Attribute Details
#sync_started ⇒ Object (readonly)
Returns the value of attribute sync_started.
7876 7877 7878 |
# File 'lib/cadenya/types.rb', line 7876 def sync_started @sync_started end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7876 7877 7878 |
# File 'lib/cadenya/types.rb', line 7876 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
7883 7884 7885 7886 7887 7888 |
# File 'lib/cadenya/types.rb', line 7883 def self.from_json(data) new( type: data["type"], sync_started: data["syncStarted"].nil? ? nil : Types::SyncStarted.from_json(data["syncStarted"]), ) end |