69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# File 'lib/purecloud/models/quote_listing.rb', line 69
def initialize(attributes = {})
return unless attributes.is_a?(Hash)
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
if attributes[:'pageSize']
self.page_size = attributes[:'pageSize']
end
if attributes[:'pageNumber']
self.page_number = attributes[:'pageNumber']
end
if attributes[:'total']
self.total = attributes[:'total']
end
if attributes[:'entities']
if (value = attributes[:'entities']).is_a?(Array)
self.entities = value
end
end
if attributes[:'selfUri']
self.self_uri = attributes[:'selfUri']
end
if attributes[:'firstUri']
self.first_uri = attributes[:'firstUri']
end
if attributes[:'previousUri']
self.previous_uri = attributes[:'previousUri']
end
if attributes[:'nextUri']
self.next_uri = attributes[:'nextUri']
end
if attributes[:'lastUri']
self.last_uri = attributes[:'lastUri']
end
if attributes[:'pageCount']
self.page_count = attributes[:'pageCount']
end
end
|