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.
5574 5575 5576 5577 5578 |
# File 'lib/models/porcelain.rb', line 5574 def initialize( id: nil ) @id = id == nil ? "" : id end |
Instance Attribute Details
#id ⇒ Object
The unique identifier of the connector to delete.
5572 5573 5574 |
# File 'lib/models/porcelain.rb', line 5572 def id @id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5580 5581 5582 5583 5584 5585 5586 |
# File 'lib/models/porcelain.rb', line 5580 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 |