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.
5730 5731 5732 5733 5734 5735 5736 |
# File 'lib/models/porcelain.rb', line 5730 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.
5726 5727 5728 |
# File 'lib/models/porcelain.rb', line 5726 def connector @connector end |
#rate_limit ⇒ Object
Rate limit information.
5728 5729 5730 |
# File 'lib/models/porcelain.rb', line 5728 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5738 5739 5740 5741 5742 5743 5744 |
# File 'lib/models/porcelain.rb', line 5738 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 |