From 16a80bdb34a7dffcf5b500d8146a64fd688c9f52 Mon Sep 17 00:00:00 2001 From: Bryan Holladay Date: Fri, 16 Sep 2016 12:07:32 -0400 Subject: [PATCH] Adding preliminary score result flag --- .../models/report_score_reponse.rb | 40 ++++++++++++------- lib/vericite_client/version.rb | 2 +- spec/models/report_score_reponse_spec.rb | 13 +++++- vericite_api.gemspec | 2 +- 4 files changed, 38 insertions(+), 19 deletions(-) diff --git a/lib/vericite_client/models/report_score_reponse.rb b/lib/vericite_client/models/report_score_reponse.rb index ffffeff..31cafd4 100755 --- a/lib/vericite_client/models/report_score_reponse.rb +++ b/lib/vericite_client/models/report_score_reponse.rb @@ -14,18 +14,22 @@ class ReportScoreReponse attr_accessor :score + attr_accessor :preliminary + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - + :'user' => :'user', - + :'assignment' => :'assignment', - + :'external_content_id' => :'externalContentId', - - :'score' => :'score' - + + :'score' => :'score', + + :'preliminary' => :'preliminary' + } end @@ -35,8 +39,9 @@ def self.swagger_types :'user' => :'String', :'assignment' => :'String', :'external_content_id' => :'String', - :'score' => :'Integer' - + :'score' => :'Integer', + :'preliminary' => :'BOOLEAN' + } end @@ -46,23 +51,27 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} - + if attributes[:'user'] self.user = attributes[:'user'] end - + if attributes[:'assignment'] self.assignment = attributes[:'assignment'] end - + if attributes[:'externalContentId'] self.external_content_id = attributes[:'externalContentId'] end - + if attributes[:'score'] self.score = attributes[:'score'] end - + + if attributes.has_key?(:'preliminary') + self.preliminary = attributes[:'preliminary'] + end + end # Check equality by comparing each attribute. @@ -72,7 +81,8 @@ def ==(o) user == o.user && assignment == o.assignment && external_content_id == o.external_content_id && - score == o.score + score == o.score && + preliminary == o.preliminary end # @see the `==` method @@ -82,7 +92,7 @@ def eql?(o) # Calculate hash code according to all attributes. def hash - [user, assignment, external_content_id, score].hash + [user, assignment, external_content_id, score, preliminary].hash end # build the object from hash diff --git a/lib/vericite_client/version.rb b/lib/vericite_client/version.rb index cc959ec..32c87f5 100755 --- a/lib/vericite_client/version.rb +++ b/lib/vericite_client/version.rb @@ -3,5 +3,5 @@ =end module VeriCiteClient - VERSION = "1.0.0" + VERSION = "1.1.0" end diff --git a/spec/models/report_score_reponse_spec.rb b/spec/models/report_score_reponse_spec.rb index aca9701..e799c7b 100755 --- a/spec/models/report_score_reponse_spec.rb +++ b/spec/models/report_score_reponse_spec.rb @@ -18,7 +18,7 @@ describe 'test an instance of ReportScoreReponse' do it 'should create an instact of ReportScoreReponse' do - @instance.should be_a(VeriCiteClient::ReportScoreReponse) + @instance.should be_a(VeriCiteClient::ReportScoreReponse) end end describe 'test attribute "user"' do @@ -61,5 +61,14 @@ end end -end + describe 'test attribute "preliminary"' do + it 'should work' do + # assertion here + # should be_a() + # should be_nil + # should == + # should_not == + end + end +end diff --git a/vericite_api.gemspec b/vericite_api.gemspec index 18effae..1ad82c8 100755 --- a/vericite_api.gemspec +++ b/vericite_api.gemspec @@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) Gem::Specification.new do |s| s.name = "vericite_api" s.description = "VeriCite API GEM" - s.version = "1.0.0" + s.version = "1.1.0" s.platform = Gem::Platform::RUBY s.authors = ["Bryan Holladay"] s.email = ["bryan@vericite.com"]