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