Class: SDM::ConnectorUpdateResponse
- Inherits:
-
Object
- Object
- SDM::ConnectorUpdateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
ConnectorUpdateResponse returns the fields of a connector after it has been updated by a connectorUpdateRequest.
Instance Attribute Summary collapse
-
#connector ⇒ Object
The updated connector.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(connector: nil, rate_limit: nil) ⇒ ConnectorUpdateResponse
constructor
A new instance of ConnectorUpdateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(connector: nil, rate_limit: nil) ⇒ ConnectorUpdateResponse
5465 5466 5467 5468 5469 5470 5471 |
# File 'lib/models/porcelain.rb', line 5465 def initialize( connector: nil, rate_limit: nil ) @connector = connector == nil ? nil : connector @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#connector ⇒ Object
The updated connector.
5461 5462 5463 |
# File 'lib/models/porcelain.rb', line 5461 def connector @connector end |
#rate_limit ⇒ Object
Rate limit information.
5463 5464 5465 |
# File 'lib/models/porcelain.rb', line 5463 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5473 5474 5475 5476 5477 5478 5479 |
# File 'lib/models/porcelain.rb', line 5473 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 |