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.



9299
9300
9301
9302
9303
9304
9305
9306
9307
# File 'lib/models/porcelain.rb', line 9299

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.



9293
9294
9295
# File 'lib/models/porcelain.rb', line 9293

def meta
  @meta
end

#rate_limitObject

Rate limit information.



9295
9296
9297
# File 'lib/models/porcelain.rb', line 9295

def rate_limit
  @rate_limit
end

#remote_identityObject

The requested RemoteIdentity.



9297
9298
9299
# File 'lib/models/porcelain.rb', line 9297

def remote_identity
  @remote_identity
end

Instance Method Details

#to_json(options = {}) ⇒ Object



9309
9310
9311
9312
9313
9314
9315
# File 'lib/models/porcelain.rb', line 9309

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