Skip to content

Commit

Permalink
Adding preliminary score result flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Holladay committed Sep 16, 2016
1 parent b076a3e commit 16a80bd
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 19 deletions.
40 changes: 25 additions & 15 deletions lib/vericite_client/models/report_score_reponse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -35,8 +39,9 @@ def self.swagger_types
:'user' => :'String',
:'assignment' => :'String',
:'external_content_id' => :'String',
:'score' => :'Integer'

:'score' => :'Integer',
:'preliminary' => :'BOOLEAN'

}
end

Expand All @@ -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.
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/vericite_client/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
=end

module VeriCiteClient
VERSION = "1.0.0"
VERSION = "1.1.0"
end
13 changes: 11 additions & 2 deletions spec/models/report_score_reponse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion vericite_api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ["[email protected]"]
Expand Down

0 comments on commit 16a80bd

Please sign in to comment.