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.
5559 5560 5561 5562 5563 |
# File 'lib/models/porcelain.rb', line 5559 def initialize( id: nil ) @id = id == nil ? "" : id end |
Instance Attribute Details
#id ⇒ Object
The unique identifier of the connector to delete.
5557 5558 5559 |
# File 'lib/models/porcelain.rb', line 5557 def id @id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5565 5566 5567 5568 5569 5570 5571 |
# File 'lib/models/porcelain.rb', line 5565 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 |