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
Returns a new instance of ConnectorUpdateResponse.
5742 5743 5744 5745 5746 5747 5748 |
# File 'lib/models/porcelain.rb', line 5742 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.
5738 5739 5740 |
# File 'lib/models/porcelain.rb', line 5738 def connector @connector end |
#rate_limit ⇒ Object
Rate limit information.
5740 5741 5742 |
# File 'lib/models/porcelain.rb', line 5740 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5750 5751 5752 5753 5754 5755 5756 |
# File 'lib/models/porcelain.rb', line 5750 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 |