Class: SDM::PolicyListResponse

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

Overview

PolicyListResponse returns a list of Policy records that meet the criteria of a PolicyListRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rate_limit: nil) ⇒ PolicyListResponse

Returns a new instance of PolicyListResponse.



8200
8201
8202
8203
8204
# File 'lib/models/porcelain.rb', line 8200

def initialize(
  rate_limit: nil
)
  @rate_limit = rate_limit == nil ? nil : rate_limit
end

Instance Attribute Details

#rate_limitObject

Rate limit information.



8198
8199
8200
# File 'lib/models/porcelain.rb', line 8198

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8206
8207
8208
8209
8210
8211
8212
# File 'lib/models/porcelain.rb', line 8206

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