clever-ruby 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +5 -4
- data/docs/DataApi.md +2 -2
- data/docs/DistrictStatusResponses.md +8 -0
- data/docs/Student.md +4 -0
- data/docs/StudentContact.md +1 -0
- data/lib/clever-ruby.rb +1 -0
- data/lib/clever-ruby/api/data_api.rb +3 -3
- data/lib/clever-ruby/models/district_status_responses.rb +189 -0
- data/lib/clever-ruby/models/student.rb +52 -4
- data/lib/clever-ruby/models/student_contact.rb +10 -1
- data/lib/clever-ruby/version.rb +1 -1
- data/override/config.json +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb13134e4c737626ca779e9b969952f36b717b6d
|
4
|
+
data.tar.gz: 1fc016660cc048e3a5e113db52e69dda26d5969c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e4e7d39ad3746223fbe25d506397a852c804f99490b72292bdf696809d952ce0a2795ef4ef447128b9c54dfca2bdf4a0700a013de836d8cb609debf9b7c8278
|
7
|
+
data.tar.gz: cd498759b72f69e2be00a47d7ae7ccea137dde13d69c25523831b0fdce3f9ec097c7533bca10366627ce0cc3a33626ac30a447ca4de8de5b922db5d11d3e30bd
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ The Clever API
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 1.2.0
|
10
|
-
- Package version: 1.
|
10
|
+
- Package version: 1.2.0
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build clever-ruby.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./clever-ruby-1.
|
26
|
+
gem install ./clever-ruby-1.2.0.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./clever-ruby-1.
|
28
|
+
(for development, run `gem install --dev ./clever-ruby-1.2.0.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'clever-ruby', '~> 1.
|
34
|
+
gem 'clever-ruby', '~> 1.2.0'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -140,6 +140,7 @@ Class | Method | HTTP request | Description
|
|
140
140
|
- [Clever::DistrictResponse](docs/DistrictResponse.md)
|
141
141
|
- [Clever::DistrictStatus](docs/DistrictStatus.md)
|
142
142
|
- [Clever::DistrictStatusResponse](docs/DistrictStatusResponse.md)
|
143
|
+
- [Clever::DistrictStatusResponses](docs/DistrictStatusResponses.md)
|
143
144
|
- [Clever::DistrictsCreated](docs/DistrictsCreated.md)
|
144
145
|
- [Clever::DistrictsDeleted](docs/DistrictsDeleted.md)
|
145
146
|
- [Clever::DistrictsResponse](docs/DistrictsResponse.md)
|
data/docs/DataApi.md
CHANGED
@@ -619,7 +619,7 @@ Name | Type | Description | Notes
|
|
619
619
|
|
620
620
|
|
621
621
|
# **get_district_status**
|
622
|
-
>
|
622
|
+
> DistrictStatusResponses get_district_status(id)
|
623
623
|
|
624
624
|
|
625
625
|
|
@@ -656,7 +656,7 @@ Name | Type | Description | Notes
|
|
656
656
|
|
657
657
|
### Return type
|
658
658
|
|
659
|
-
[**
|
659
|
+
[**DistrictStatusResponses**](DistrictStatusResponses.md)
|
660
660
|
|
661
661
|
### Authorization
|
662
662
|
|
data/docs/Student.md
CHANGED
@@ -11,7 +11,9 @@ Name | Type | Description | Notes
|
|
11
11
|
**email** | **String** | | [optional]
|
12
12
|
**gender** | **String** | | [optional]
|
13
13
|
**grade** | **String** | | [optional]
|
14
|
+
**graduation_year** | **String** | | [optional]
|
14
15
|
**hispanic_ethnicity** | **String** | | [optional]
|
16
|
+
**home_language** | **String** | | [optional]
|
15
17
|
**id** | **String** | | [optional]
|
16
18
|
**iep_status** | **String** | | [optional]
|
17
19
|
**last_modified** | **String** | | [optional]
|
@@ -23,5 +25,7 @@ Name | Type | Description | Notes
|
|
23
25
|
**sis_id** | **String** | | [optional]
|
24
26
|
**state_id** | **String** | | [optional]
|
25
27
|
**student_number** | **String** | | [optional]
|
28
|
+
**unweighted_gpa** | **String** | | [optional]
|
29
|
+
**weighted_gpa** | **String** | | [optional]
|
26
30
|
|
27
31
|
|
data/docs/StudentContact.md
CHANGED
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**phone** | **String** | | [optional]
|
11
11
|
**phone_type** | **String** | | [optional]
|
12
12
|
**relationship** | **String** | | [optional]
|
13
|
+
**sis_id** | **String** | | [optional]
|
13
14
|
**student** | **String** | | [optional]
|
14
15
|
**type** | **String** | | [optional]
|
15
16
|
|
data/lib/clever-ruby.rb
CHANGED
@@ -26,6 +26,7 @@ require 'clever-ruby/models/district_object'
|
|
26
26
|
require 'clever-ruby/models/district_response'
|
27
27
|
require 'clever-ruby/models/district_status'
|
28
28
|
require 'clever-ruby/models/district_status_response'
|
29
|
+
require 'clever-ruby/models/district_status_responses'
|
29
30
|
require 'clever-ruby/models/districts_created'
|
30
31
|
require 'clever-ruby/models/districts_deleted'
|
31
32
|
require 'clever-ruby/models/districts_response'
|
@@ -594,7 +594,7 @@ module Clever
|
|
594
594
|
# Returns the status of the district
|
595
595
|
# @param id
|
596
596
|
# @param [Hash] opts the optional parameters
|
597
|
-
# @return [
|
597
|
+
# @return [DistrictStatusResponses]
|
598
598
|
def get_district_status(id, opts = {})
|
599
599
|
data, _status_code, _headers = get_district_status_with_http_info(id, opts)
|
600
600
|
return data
|
@@ -604,7 +604,7 @@ module Clever
|
|
604
604
|
# Returns the status of the district
|
605
605
|
# @param id
|
606
606
|
# @param [Hash] opts the optional parameters
|
607
|
-
# @return [Array<(
|
607
|
+
# @return [Array<(DistrictStatusResponses, Fixnum, Hash)>] DistrictStatusResponses data, response status code and response headers
|
608
608
|
def get_district_status_with_http_info(id, opts = {})
|
609
609
|
if @api_client.config.debugging
|
610
610
|
@api_client.config.logger.debug "Calling API: DataApi.get_district_status ..."
|
@@ -634,7 +634,7 @@ module Clever
|
|
634
634
|
:form_params => form_params,
|
635
635
|
:body => post_body,
|
636
636
|
:auth_names => auth_names,
|
637
|
-
:return_type => '
|
637
|
+
:return_type => 'DistrictStatusResponses')
|
638
638
|
if @api_client.config.debugging
|
639
639
|
@api_client.config.logger.debug "API called: DataApi#get_district_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
640
640
|
end
|
@@ -0,0 +1,189 @@
|
|
1
|
+
=begin
|
2
|
+
#Clever API
|
3
|
+
|
4
|
+
#The Clever API
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module Clever
|
15
|
+
|
16
|
+
class DistrictStatusResponses
|
17
|
+
attr_accessor :data
|
18
|
+
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'data' => :'data'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attribute type mapping.
|
28
|
+
def self.swagger_types
|
29
|
+
{
|
30
|
+
:'data' => :'Array<DistrictStatusResponse>'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Initializes the object
|
35
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
36
|
+
def initialize(attributes = {})
|
37
|
+
return unless attributes.is_a?(Hash)
|
38
|
+
|
39
|
+
# convert string to symbol for hash key
|
40
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
41
|
+
|
42
|
+
if attributes.has_key?(:'data')
|
43
|
+
if (value = attributes[:'data']).is_a?(Array)
|
44
|
+
self.data = value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
51
|
+
# @return Array for valid properies with the reasons
|
52
|
+
def list_invalid_properties
|
53
|
+
invalid_properties = Array.new
|
54
|
+
return invalid_properties
|
55
|
+
end
|
56
|
+
|
57
|
+
# Check to see if the all the properties in the model are valid
|
58
|
+
# @return true if the model is valid
|
59
|
+
def valid?
|
60
|
+
return true
|
61
|
+
end
|
62
|
+
|
63
|
+
# Checks equality by comparing each attribute.
|
64
|
+
# @param [Object] Object to be compared
|
65
|
+
def ==(o)
|
66
|
+
return true if self.equal?(o)
|
67
|
+
self.class == o.class &&
|
68
|
+
data == o.data
|
69
|
+
end
|
70
|
+
|
71
|
+
# @see the `==` method
|
72
|
+
# @param [Object] Object to be compared
|
73
|
+
def eql?(o)
|
74
|
+
self == o
|
75
|
+
end
|
76
|
+
|
77
|
+
# Calculates hash code according to all attributes.
|
78
|
+
# @return [Fixnum] Hash code
|
79
|
+
def hash
|
80
|
+
[data].hash
|
81
|
+
end
|
82
|
+
|
83
|
+
# Builds the object from hash
|
84
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
85
|
+
# @return [Object] Returns the model itself
|
86
|
+
def build_from_hash(attributes)
|
87
|
+
return nil unless attributes.is_a?(Hash)
|
88
|
+
self.class.swagger_types.each_pair do |key, type|
|
89
|
+
if type =~ /\AArray<(.*)>/i
|
90
|
+
# check to ensure the input is an array given that the the attribute
|
91
|
+
# is documented as an array but the input is not
|
92
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
93
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
94
|
+
end
|
95
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
96
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
97
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
98
|
+
end
|
99
|
+
|
100
|
+
self
|
101
|
+
end
|
102
|
+
|
103
|
+
# Deserializes the data based on type
|
104
|
+
# @param string type Data type
|
105
|
+
# @param string value Value to be deserialized
|
106
|
+
# @return [Object] Deserialized data
|
107
|
+
def _deserialize(type, value)
|
108
|
+
case type.to_sym
|
109
|
+
when :DateTime
|
110
|
+
DateTime.parse(value)
|
111
|
+
when :Date
|
112
|
+
Date.parse(value)
|
113
|
+
when :String
|
114
|
+
value.to_s
|
115
|
+
when :Integer
|
116
|
+
value.to_i
|
117
|
+
when :Float
|
118
|
+
value.to_f
|
119
|
+
when :BOOLEAN
|
120
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
121
|
+
true
|
122
|
+
else
|
123
|
+
false
|
124
|
+
end
|
125
|
+
when :Object
|
126
|
+
# generic object (usually a Hash), return directly
|
127
|
+
value
|
128
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
129
|
+
inner_type = Regexp.last_match[:inner_type]
|
130
|
+
value.map { |v| _deserialize(inner_type, v) }
|
131
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
132
|
+
k_type = Regexp.last_match[:k_type]
|
133
|
+
v_type = Regexp.last_match[:v_type]
|
134
|
+
{}.tap do |hash|
|
135
|
+
value.each do |k, v|
|
136
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
else # model
|
140
|
+
temp_model = Clever.const_get(type).new
|
141
|
+
temp_model.build_from_hash(value)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
# Returns the string representation of the object
|
146
|
+
# @return [String] String presentation of the object
|
147
|
+
def to_s
|
148
|
+
to_hash.to_s
|
149
|
+
end
|
150
|
+
|
151
|
+
# to_body is an alias to to_hash (backward compatibility)
|
152
|
+
# @return [Hash] Returns the object in the form of hash
|
153
|
+
def to_body
|
154
|
+
to_hash
|
155
|
+
end
|
156
|
+
|
157
|
+
# Returns the object in the form of hash
|
158
|
+
# @return [Hash] Returns the object in the form of hash
|
159
|
+
def to_hash
|
160
|
+
hash = {}
|
161
|
+
self.class.attribute_map.each_pair do |attr, param|
|
162
|
+
value = self.send(attr)
|
163
|
+
next if value.nil?
|
164
|
+
hash[param] = _to_hash(value)
|
165
|
+
end
|
166
|
+
hash
|
167
|
+
end
|
168
|
+
|
169
|
+
# Outputs non-array value in the form of hash
|
170
|
+
# For object, use to_hash. Otherwise, just return the value
|
171
|
+
# @param [Object] value Any valid value
|
172
|
+
# @return [Hash] Returns the value in the form of hash
|
173
|
+
def _to_hash(value)
|
174
|
+
if value.is_a?(Array)
|
175
|
+
value.compact.map{ |v| _to_hash(v) }
|
176
|
+
elsif value.is_a?(Hash)
|
177
|
+
{}.tap do |hash|
|
178
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
179
|
+
end
|
180
|
+
elsif value.respond_to? :to_hash
|
181
|
+
value.to_hash
|
182
|
+
else
|
183
|
+
value
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
end
|
188
|
+
|
189
|
+
end
|
@@ -30,8 +30,12 @@ module Clever
|
|
30
30
|
|
31
31
|
attr_accessor :grade
|
32
32
|
|
33
|
+
attr_accessor :graduation_year
|
34
|
+
|
33
35
|
attr_accessor :hispanic_ethnicity
|
34
36
|
|
37
|
+
attr_accessor :home_language
|
38
|
+
|
35
39
|
attr_accessor :id
|
36
40
|
|
37
41
|
attr_accessor :iep_status
|
@@ -54,6 +58,10 @@ module Clever
|
|
54
58
|
|
55
59
|
attr_accessor :student_number
|
56
60
|
|
61
|
+
attr_accessor :unweighted_gpa
|
62
|
+
|
63
|
+
attr_accessor :weighted_gpa
|
64
|
+
|
57
65
|
class EnumAttributeValidator
|
58
66
|
attr_reader :datatype
|
59
67
|
attr_reader :allowable_values
|
@@ -87,7 +95,9 @@ module Clever
|
|
87
95
|
:'email' => :'email',
|
88
96
|
:'gender' => :'gender',
|
89
97
|
:'grade' => :'grade',
|
98
|
+
:'graduation_year' => :'graduation_year',
|
90
99
|
:'hispanic_ethnicity' => :'hispanic_ethnicity',
|
100
|
+
:'home_language' => :'home_language',
|
91
101
|
:'id' => :'id',
|
92
102
|
:'iep_status' => :'iep_status',
|
93
103
|
:'last_modified' => :'last_modified',
|
@@ -98,7 +108,9 @@ module Clever
|
|
98
108
|
:'schools' => :'schools',
|
99
109
|
:'sis_id' => :'sis_id',
|
100
110
|
:'state_id' => :'state_id',
|
101
|
-
:'student_number' => :'student_number'
|
111
|
+
:'student_number' => :'student_number',
|
112
|
+
:'unweighted_gpa' => :'unweighted_gpa',
|
113
|
+
:'weighted_gpa' => :'weighted_gpa'
|
102
114
|
}
|
103
115
|
end
|
104
116
|
|
@@ -113,7 +125,9 @@ module Clever
|
|
113
125
|
:'email' => :'String',
|
114
126
|
:'gender' => :'String',
|
115
127
|
:'grade' => :'String',
|
128
|
+
:'graduation_year' => :'String',
|
116
129
|
:'hispanic_ethnicity' => :'String',
|
130
|
+
:'home_language' => :'String',
|
117
131
|
:'id' => :'String',
|
118
132
|
:'iep_status' => :'String',
|
119
133
|
:'last_modified' => :'String',
|
@@ -124,7 +138,9 @@ module Clever
|
|
124
138
|
:'schools' => :'Array<String>',
|
125
139
|
:'sis_id' => :'String',
|
126
140
|
:'state_id' => :'String',
|
127
|
-
:'student_number' => :'String'
|
141
|
+
:'student_number' => :'String',
|
142
|
+
:'unweighted_gpa' => :'String',
|
143
|
+
:'weighted_gpa' => :'String'
|
128
144
|
}
|
129
145
|
end
|
130
146
|
|
@@ -168,10 +184,18 @@ module Clever
|
|
168
184
|
self.grade = attributes[:'grade']
|
169
185
|
end
|
170
186
|
|
187
|
+
if attributes.has_key?(:'graduation_year')
|
188
|
+
self.graduation_year = attributes[:'graduation_year']
|
189
|
+
end
|
190
|
+
|
171
191
|
if attributes.has_key?(:'hispanic_ethnicity')
|
172
192
|
self.hispanic_ethnicity = attributes[:'hispanic_ethnicity']
|
173
193
|
end
|
174
194
|
|
195
|
+
if attributes.has_key?(:'home_language')
|
196
|
+
self.home_language = attributes[:'home_language']
|
197
|
+
end
|
198
|
+
|
175
199
|
if attributes.has_key?(:'id')
|
176
200
|
self.id = attributes[:'id']
|
177
201
|
end
|
@@ -218,6 +242,14 @@ module Clever
|
|
218
242
|
self.student_number = attributes[:'student_number']
|
219
243
|
end
|
220
244
|
|
245
|
+
if attributes.has_key?(:'unweighted_gpa')
|
246
|
+
self.unweighted_gpa = attributes[:'unweighted_gpa']
|
247
|
+
end
|
248
|
+
|
249
|
+
if attributes.has_key?(:'weighted_gpa')
|
250
|
+
self.weighted_gpa = attributes[:'weighted_gpa']
|
251
|
+
end
|
252
|
+
|
221
253
|
end
|
222
254
|
|
223
255
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -238,6 +270,8 @@ module Clever
|
|
238
270
|
return false unless grade_validator.valid?(@grade)
|
239
271
|
hispanic_ethnicity_validator = EnumAttributeValidator.new('String', ["Y", "N", ""])
|
240
272
|
return false unless hispanic_ethnicity_validator.valid?(@hispanic_ethnicity)
|
273
|
+
home_language_validator = EnumAttributeValidator.new('String', ["English", "Albanian", "Amharic", "Arabic", "Bengali", "Bosnian", "Burmese", "Cantonese", "Chinese", "Dutch", "Farsi", "French", "German", "Hebrew", "Hindi", "Hmong", "Ilocano", "Japanese", "Javanese", "Karen", "Khmer", "Korean", "Laotian", "Latvian", "Malay", "Mandarin", "Nepali", "Oromo", "Polish", "Portuguese", "Punjabi", "Romanian", "Russian", "Samoan", "Serbian", "Somali", "Spanish", "Swahili", "Tagalog", "Tamil", "Telegu", "Thai", "Tigrinya", "Turkish", "Ukrainian", "Urdu", "Vietnamese"])
|
274
|
+
return false unless home_language_validator.valid?(@home_language)
|
241
275
|
race_validator = EnumAttributeValidator.new('String', ["Caucasian", "Asian", "Black or African American", "American Indian", "Hawaiian or Other Pacific Islander", "Two or More Races", "Unknown", ""])
|
242
276
|
return false unless race_validator.valid?(@race)
|
243
277
|
return true
|
@@ -283,6 +317,16 @@ module Clever
|
|
283
317
|
@hispanic_ethnicity = hispanic_ethnicity
|
284
318
|
end
|
285
319
|
|
320
|
+
# Custom attribute writer method checking allowed values (enum).
|
321
|
+
# @param [Object] home_language Object to be assigned
|
322
|
+
def home_language=(home_language)
|
323
|
+
validator = EnumAttributeValidator.new('String', ["English", "Albanian", "Amharic", "Arabic", "Bengali", "Bosnian", "Burmese", "Cantonese", "Chinese", "Dutch", "Farsi", "French", "German", "Hebrew", "Hindi", "Hmong", "Ilocano", "Japanese", "Javanese", "Karen", "Khmer", "Korean", "Laotian", "Latvian", "Malay", "Mandarin", "Nepali", "Oromo", "Polish", "Portuguese", "Punjabi", "Romanian", "Russian", "Samoan", "Serbian", "Somali", "Spanish", "Swahili", "Tagalog", "Tamil", "Telegu", "Thai", "Tigrinya", "Turkish", "Ukrainian", "Urdu", "Vietnamese"])
|
324
|
+
unless validator.valid?(home_language)
|
325
|
+
fail ArgumentError, "invalid value for 'home_language', must be one of #{validator.allowable_values}."
|
326
|
+
end
|
327
|
+
@home_language = home_language
|
328
|
+
end
|
329
|
+
|
286
330
|
# Custom attribute writer method checking allowed values (enum).
|
287
331
|
# @param [Object] race Object to be assigned
|
288
332
|
def race=(race)
|
@@ -306,7 +350,9 @@ module Clever
|
|
306
350
|
email == o.email &&
|
307
351
|
gender == o.gender &&
|
308
352
|
grade == o.grade &&
|
353
|
+
graduation_year == o.graduation_year &&
|
309
354
|
hispanic_ethnicity == o.hispanic_ethnicity &&
|
355
|
+
home_language == o.home_language &&
|
310
356
|
id == o.id &&
|
311
357
|
iep_status == o.iep_status &&
|
312
358
|
last_modified == o.last_modified &&
|
@@ -317,7 +363,9 @@ module Clever
|
|
317
363
|
schools == o.schools &&
|
318
364
|
sis_id == o.sis_id &&
|
319
365
|
state_id == o.state_id &&
|
320
|
-
student_number == o.student_number
|
366
|
+
student_number == o.student_number &&
|
367
|
+
unweighted_gpa == o.unweighted_gpa &&
|
368
|
+
weighted_gpa == o.weighted_gpa
|
321
369
|
end
|
322
370
|
|
323
371
|
# @see the `==` method
|
@@ -329,7 +377,7 @@ module Clever
|
|
329
377
|
# Calculates hash code according to all attributes.
|
330
378
|
# @return [Fixnum] Hash code
|
331
379
|
def hash
|
332
|
-
[created, credentials, district, dob, ell_status, email, gender, grade, hispanic_ethnicity, id, iep_status, last_modified, location, name, race, school, schools, sis_id, state_id, student_number].hash
|
380
|
+
[created, credentials, district, dob, ell_status, email, gender, grade, graduation_year, hispanic_ethnicity, home_language, id, iep_status, last_modified, location, name, race, school, schools, sis_id, state_id, student_number, unweighted_gpa, weighted_gpa].hash
|
333
381
|
end
|
334
382
|
|
335
383
|
# Builds the object from hash
|
@@ -28,6 +28,8 @@ module Clever
|
|
28
28
|
|
29
29
|
attr_accessor :relationship
|
30
30
|
|
31
|
+
attr_accessor :sis_id
|
32
|
+
|
31
33
|
attr_accessor :student
|
32
34
|
|
33
35
|
attr_accessor :type
|
@@ -43,6 +45,7 @@ module Clever
|
|
43
45
|
:'phone' => :'phone',
|
44
46
|
:'phone_type' => :'phone_type',
|
45
47
|
:'relationship' => :'relationship',
|
48
|
+
:'sis_id' => :'sis_id',
|
46
49
|
:'student' => :'student',
|
47
50
|
:'type' => :'type'
|
48
51
|
}
|
@@ -58,6 +61,7 @@ module Clever
|
|
58
61
|
:'phone' => :'String',
|
59
62
|
:'phone_type' => :'String',
|
60
63
|
:'relationship' => :'String',
|
64
|
+
:'sis_id' => :'String',
|
61
65
|
:'student' => :'String',
|
62
66
|
:'type' => :'String'
|
63
67
|
}
|
@@ -99,6 +103,10 @@ module Clever
|
|
99
103
|
self.relationship = attributes[:'relationship']
|
100
104
|
end
|
101
105
|
|
106
|
+
if attributes.has_key?(:'sis_id')
|
107
|
+
self.sis_id = attributes[:'sis_id']
|
108
|
+
end
|
109
|
+
|
102
110
|
if attributes.has_key?(:'student')
|
103
111
|
self.student = attributes[:'student']
|
104
112
|
end
|
@@ -134,6 +142,7 @@ module Clever
|
|
134
142
|
phone == o.phone &&
|
135
143
|
phone_type == o.phone_type &&
|
136
144
|
relationship == o.relationship &&
|
145
|
+
sis_id == o.sis_id &&
|
137
146
|
student == o.student &&
|
138
147
|
type == o.type
|
139
148
|
end
|
@@ -147,7 +156,7 @@ module Clever
|
|
147
156
|
# Calculates hash code according to all attributes.
|
148
157
|
# @return [Fixnum] Hash code
|
149
158
|
def hash
|
150
|
-
[district, email, id, name, phone, phone_type, relationship, student, type].hash
|
159
|
+
[district, email, id, name, phone, phone_type, relationship, sis_id, student, type].hash
|
151
160
|
end
|
152
161
|
|
153
162
|
# Builds the object from hash
|
data/lib/clever-ruby/version.rb
CHANGED
data/override/config.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clever-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swagger-Codegen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -217,6 +217,7 @@ files:
|
|
217
217
|
- docs/DistrictResponse.md
|
218
218
|
- docs/DistrictStatus.md
|
219
219
|
- docs/DistrictStatusResponse.md
|
220
|
+
- docs/DistrictStatusResponses.md
|
220
221
|
- docs/DistrictsCreated.md
|
221
222
|
- docs/DistrictsDeleted.md
|
222
223
|
- docs/DistrictsResponse.md
|
@@ -291,6 +292,7 @@ files:
|
|
291
292
|
- lib/clever-ruby/models/district_response.rb
|
292
293
|
- lib/clever-ruby/models/district_status.rb
|
293
294
|
- lib/clever-ruby/models/district_status_response.rb
|
295
|
+
- lib/clever-ruby/models/district_status_responses.rb
|
294
296
|
- lib/clever-ruby/models/districts_created.rb
|
295
297
|
- lib/clever-ruby/models/districts_deleted.rb
|
296
298
|
- lib/clever-ruby/models/districts_response.rb
|