class Gobbler::Checkpoint
Public Class Methods
get(opts)
click to toggle source
Gets the checkpoint for a project
@option opts [String] :project_id The id of the project to get @option opts [Integer] :checkpoint The number of the checkpoint @return [Checkpoint] the checkpoint
# 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
Public Instance Methods
email_to(recipients, opts = {})
click to toggle source
Email this version of the project to a list of recipieints @param recipieints [String] A comma-separated list of email addresses @return [Hash] The sevrer response
# File lib/gobbler/checkpoint.rb, line 22 def email_to(recipients, opts = {}) opts[:checkpoint] = num project.email_to(recipients, opts) end
project()
click to toggle source
@return [Project] The {Project} that this is a checkpoint for
# File lib/gobbler/checkpoint.rb, line 15 def project ::Gobbler::Project.get(json["project"]) end
Private Instance Methods
base_attr()
click to toggle source
# File lib/gobbler/checkpoint.rb, line 29 def base_attr; json["checkpoint"]; end