Class: SDM::ConnectorGetResponse
- Inherits:
-
Object
- Object
- SDM::ConnectorGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
ConnectorGetResponse returns a requested Connector.
Instance Attribute Summary collapse
-
#connector ⇒ Object
The requested Connector.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(connector: nil, meta: nil, rate_limit: nil) ⇒ ConnectorGetResponse
constructor
A new instance of ConnectorGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(connector: nil, meta: nil, rate_limit: nil) ⇒ ConnectorGetResponse
Returns a new instance of ConnectorGetResponse.
5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/models/porcelain.rb', line 5621 def initialize( connector: nil, meta: nil, rate_limit: nil ) @connector = connector == nil ? nil : connector = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#connector ⇒ Object
The requested Connector.
5615 5616 5617 |
# File 'lib/models/porcelain.rb', line 5615 def connector @connector end |
#meta ⇒ Object
Reserved for future use.
5617 5618 5619 |
# File 'lib/models/porcelain.rb', line 5617 def end |
#rate_limit ⇒ Object
Rate limit information.
5619 5620 5621 |
# File 'lib/models/porcelain.rb', line 5619 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5631 5632 5633 5634 5635 5636 5637 |
# File 'lib/models/porcelain.rb', line 5631 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 |