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.



10221
10222
10223
10224
10225
10226
10227
10228
10229
# File 'lib/models/porcelain.rb', line 10221

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.



10215
10216
10217
# File 'lib/models/porcelain.rb', line 10215

def meta
  @meta
end

#rate_limitObject

Rate limit information.



10217
10218
10219
# File 'lib/models/porcelain.rb', line 10217

def rate_limit
  @rate_limit
end

#remote_identityObject

The requested RemoteIdentity.



10219
10220
10221
# File 'lib/models/porcelain.rb', line 10219

def remote_identity
  @remote_identity
end

Instance Method Details

#to_json(options = {}) ⇒ Object



10231
10232
10233
10234
10235
10236
10237
# File 'lib/models/porcelain.rb', line 10231

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