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.
5309 5310 5311 5312 5313 |
# File 'lib/models/porcelain.rb', line 5309 def initialize( id: nil ) @id = id == nil ? "" : id end |
Instance Attribute Details
#id ⇒ Object
The unique identifier of the connector to delete.
5307 5308 5309 |
# File 'lib/models/porcelain.rb', line 5307 def id @id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5315 5316 5317 5318 5319 5320 5321 |
# File 'lib/models/porcelain.rb', line 5315 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 |