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.



8909
8910
8911
8912
8913
# File 'lib/models/porcelain.rb', line 8909

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

Instance Attribute Details

#rate_limitObject

Rate limit information.



8907
8908
8909
# File 'lib/models/porcelain.rb', line 8907

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8915
8916
8917
8918
8919
8920
8921
# File 'lib/models/porcelain.rb', line 8915

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