Class: SDM::ProxyClusterKeyGetResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

ProxyClusterKeyGetResponse returns a requested ProxyClusterKey.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, proxy_cluster_key: nil, rate_limit: nil) ⇒ ProxyClusterKeyGetResponse

Returns a new instance of ProxyClusterKeyGetResponse.



9257
9258
9259
9260
9261
9262
9263
9264
9265
# File 'lib/models/porcelain.rb', line 9257

def initialize(
  meta: nil,
  proxy_cluster_key: nil,
  rate_limit: nil
)
  @meta = meta == nil ? nil : meta
  @proxy_cluster_key = proxy_cluster_key == nil ? nil : proxy_cluster_key
  @rate_limit = rate_limit == nil ? nil : rate_limit
end

Instance Attribute Details

#metaObject

Reserved for future use.



9251
9252
9253
# File 'lib/models/porcelain.rb', line 9251

def meta
  @meta
end

#proxy_cluster_keyObject

The requested ProxyClusterKey.



9253
9254
9255
# File 'lib/models/porcelain.rb', line 9253

def proxy_cluster_key
  @proxy_cluster_key
end

#rate_limitObject

Rate limit information.



9255
9256
9257
# File 'lib/models/porcelain.rb', line 9255

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



9267
9268
9269
9270
9271
9272
9273
# File 'lib/models/porcelain.rb', line 9267

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end