Class: Gobbler::Checkpoint
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
-
.get(opts) ⇒ Checkpoint
Gets the checkpoint for a project.
Instance Method Summary collapse
-
#email_to(recipients, opts = {}) ⇒ Hash
Email this version of the project to a list of recipieints.
-
#project ⇒ Project
The Project that this is a checkpoint for.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Gobbler::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Gobbler::Base
Class Method Details
.get(opts) ⇒ Checkpoint
Gets the checkpoint for a project
9 10 11 12 |
# File 'lib/gobbler/checkpoint.rb', line 9 def self.get(opts) raise unless opts[:project_id] && opts[:checkpoint] new(::Gobbler.request("v1/projects/#{opts[:project_id]}/checkpoints/#{opts[:checkpoint]}")) end |
Instance Method Details
#email_to(recipients, opts = {}) ⇒ Hash
Email this version of the project to a list of recipieints
22 23 24 25 |
# File 'lib/gobbler/checkpoint.rb', line 22 def email_to(recipients, opts = {}) opts[:checkpoint] = num project.email_to(recipients, opts) end |