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.
5601 5602 5603 5604 5605 |
# File 'lib/models/porcelain.rb', line 5601 def initialize( id: nil ) @id = id == nil ? "" : id end |
Instance Attribute Details
#id ⇒ Object
The unique identifier of the Connector to retrieve.
5599 5600 5601 |
# File 'lib/models/porcelain.rb', line 5599 def id @id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5607 5608 5609 5610 5611 5612 5613 |
# File 'lib/models/porcelain.rb', line 5607 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 |