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