Class: SDM::PolicyListResponse
- Inherits:
-
Object
- Object
- SDM::PolicyListResponse
- 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
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(rate_limit: nil) ⇒ PolicyListResponse
constructor
A new instance of PolicyListResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(rate_limit: nil) ⇒ PolicyListResponse
Returns a new instance of PolicyListResponse.
10737 10738 10739 10740 10741 |
# File 'lib/models/porcelain.rb', line 10737 def initialize( rate_limit: nil ) @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#rate_limit ⇒ Object
Rate limit information.
10735 10736 10737 |
# File 'lib/models/porcelain.rb', line 10735 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
10743 10744 10745 10746 10747 10748 10749 |
# File 'lib/models/porcelain.rb', line 10743 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |