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.
5709 5710 5711 5712 5713 5714 5715 |
# File 'lib/models/porcelain.rb', line 5709 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.
5705 5706 5707 |
# File 'lib/models/porcelain.rb', line 5705 def connector @connector end |
#rate_limit ⇒ Object
Rate limit information.
5707 5708 5709 |
# File 'lib/models/porcelain.rb', line 5707 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5717 5718 5719 5720 5721 5722 5723 |
# File 'lib/models/porcelain.rb', line 5717 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 |