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.
5618 5619 5620 5621 5622 |
# File 'lib/models/porcelain.rb', line 5618 def initialize( id: nil ) @id = id == nil ? "" : id end |
Instance Attribute Details
#id ⇒ Object
The unique identifier of the Connector to retrieve.
5616 5617 5618 |
# File 'lib/models/porcelain.rb', line 5616 def id @id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5624 5625 5626 5627 5628 5629 5630 |
# File 'lib/models/porcelain.rb', line 5624 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 |