Class: SDM::RemoteIdentityGetResponse

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

Overview

RemoteIdentityGetResponse returns a requested RemoteIdentity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, rate_limit: nil, remote_identity: nil) ⇒ RemoteIdentityGetResponse

Returns a new instance of RemoteIdentityGetResponse.



7961
7962
7963
7964
7965
7966
7967
7968
7969
# File 'lib/models/porcelain.rb', line 7961

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

Instance Attribute Details

#metaObject

Reserved for future use.



7955
7956
7957
# File 'lib/models/porcelain.rb', line 7955

def meta
  @meta
end

#rate_limitObject

Rate limit information.



7957
7958
7959
# File 'lib/models/porcelain.rb', line 7957

def rate_limit
  @rate_limit
end

#remote_identityObject

The requested RemoteIdentity.



7959
7960
7961
# File 'lib/models/porcelain.rb', line 7959

def remote_identity
  @remote_identity
end

Instance Method Details

#to_json(options = {}) ⇒ Object



7971
7972
7973
7974
7975
7976
7977
# File 'lib/models/porcelain.rb', line 7971

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