Class: SDM::ConnectorDeleteRequest
- Inherits:
-
Object
- Object
- SDM::ConnectorDeleteRequest
- Defined in:
- lib/models/porcelain.rb
Overview
ConnectorDeleteRequest identifies a connector by ID to delete.
Instance Attribute Summary collapse
-
#id ⇒ Object
The unique identifier of the connector to delete.
Instance Method Summary collapse
-
#initialize(id: nil) ⇒ ConnectorDeleteRequest
constructor
A new instance of ConnectorDeleteRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil) ⇒ ConnectorDeleteRequest
Returns a new instance of ConnectorDeleteRequest.
5553 5554 5555 5556 5557 |
# File 'lib/models/porcelain.rb', line 5553 def initialize( id: nil ) @id = id == nil ? "" : id end |
Instance Attribute Details
#id ⇒ Object
The unique identifier of the connector to delete.
5551 5552 5553 |
# File 'lib/models/porcelain.rb', line 5551 def id @id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5559 5560 5561 5562 5563 5564 5565 |
# File 'lib/models/porcelain.rb', line 5559 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |