Class: Wes::Data::API::Model::Submission
- Defined in:
- lib/wes/data/api/model/submission.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Wes::Data::API::Model::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Wes::Data::API::Model::Base
Instance Method Details
#approve ⇒ Object
9 10 11 |
# File 'lib/wes/data/api/model/submission.rb', line 9 def approve update(:state => "approved") end |
#decline ⇒ Object
13 14 15 |
# File 'lib/wes/data/api/model/submission.rb', line 13 def decline update(:state => "declined") end |