class Fog::AWS::Glacier::Jobs

Public Class Methods

new(attributes) click to toggle source
Calls superclass method
# File lib/fog/aws/models/glacier/jobs.rb, line 11
def initialize(attributes)
  self.filters = {}
  super
end

Public Instance Methods

all(filters = self.filters) click to toggle source

acceptable filters are: statuscode InProgress/Failed/Succeeded completed (true/false)

# File lib/fog/aws/models/glacier/jobs.rb, line 19
def all(filters = self.filters)
  self.filters = filters
  data = service.list_jobs(vault.id, self.filters).body['JobList']
  load(data)
end
get(key) click to toggle source
# File lib/fog/aws/models/glacier/jobs.rb, line 25
def get(key)
  data = service.describe_job(vault.id, key).body
  new(data)
rescue Excon::Errors::NotFound
  nil
end
new(attributes = {}) click to toggle source
Calls superclass method
# File lib/fog/aws/models/glacier/jobs.rb, line 32
def new(attributes = {})
  requires :vault
  super({ :vault => vault }.merge!(attributes))
end