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.
5625 5626 5627 5628 5629 5630 5631 5632 5633 |
# File 'lib/models/porcelain.rb', line 5625 def initialize( connector: nil, meta: nil, rate_limit: nil ) @connector = connector == nil ? nil : connector @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#connector ⇒ Object
The requested Connector.
5619 5620 5621 |
# File 'lib/models/porcelain.rb', line 5619 def connector @connector end |
#meta ⇒ Object
Reserved for future use.
5621 5622 5623 |
# File 'lib/models/porcelain.rb', line 5621 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5623 5624 5625 |
# File 'lib/models/porcelain.rb', line 5623 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5635 5636 5637 5638 5639 5640 5641 |
# File 'lib/models/porcelain.rb', line 5635 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 |