Class: SDM::ConnectorGetRequest
- Inherits:
-
Object
- Object
- SDM::ConnectorGetRequest
- Defined in:
- lib/models/porcelain.rb
Overview
ConnectorGetRequest specifies which Connector to retrieve.
Instance Attribute Summary collapse
-
#id ⇒ Object
The unique identifier of the Connector to retrieve.
Instance Method Summary collapse
-
#initialize(id: nil) ⇒ ConnectorGetRequest
constructor
A new instance of ConnectorGetRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil) ⇒ ConnectorGetRequest
Returns a new instance of ConnectorGetRequest.
5353 5354 5355 5356 5357 |
# File 'lib/models/porcelain.rb', line 5353 def initialize( id: nil ) @id = id == nil ? "" : id end |
Instance Attribute Details
#id ⇒ Object
The unique identifier of the Connector to retrieve.
5351 5352 5353 |
# File 'lib/models/porcelain.rb', line 5351 def id @id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5359 5360 5361 5362 5363 5364 5365 |
# File 'lib/models/porcelain.rb', line 5359 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 |