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.



14443
14444
14445
14446
14447
14448
14449
14450
14451
# File 'lib/models/porcelain.rb', line 14443

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

#meta ⇒ Object

Reserved for future use.



14437
14438
14439
# File 'lib/models/porcelain.rb', line 14437

def meta
  @meta
end

#proxy_cluster_key ⇒ Object

The requested ProxyClusterKey.



14439
14440
14441
# File 'lib/models/porcelain.rb', line 14439

def proxy_cluster_key
  @proxy_cluster_key
end

#rate_limit ⇒ Object

Rate limit information.



14441
14442
14443
# File 'lib/models/porcelain.rb', line 14441

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



14453
14454
14455
14456
14457
14458
14459
# File 'lib/models/porcelain.rb', line 14453

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