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.
5377 5378 5379 5380 5381 5382 5383 5384 5385 |
# File 'lib/models/porcelain.rb', line 5377 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.
5371 5372 5373 |
# File 'lib/models/porcelain.rb', line 5371 def connector @connector end |
#meta ⇒ Object
Reserved for future use.
5373 5374 5375 |
# File 'lib/models/porcelain.rb', line 5373 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5375 5376 5377 |
# File 'lib/models/porcelain.rb', line 5375 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5387 5388 5389 5390 5391 5392 5393 |
# File 'lib/models/porcelain.rb', line 5387 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 |