Class: DaggerRuby::CacheVolume

Inherits:
DaggerObject show all
Defined in:
lib/dagger_ruby/cache_volume.rb

Instance Attribute Summary

Attributes inherited from DaggerObject

#client, #query_builder

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DaggerObject

#chain_operation, #id, #initialize

Constructor Details

This class inherits a constructor from DaggerRuby::DaggerObject

Class Method Details

.from_id(id, client) ⇒ Object



7
8
9
10
11
# File 'lib/dagger_ruby/cache_volume.rb', line 7

def self.from_id(id, client)
  query = QueryBuilder.new("cacheVolume")
  query.load_from_id(id)
  new(query, client)
end

.root_field_nameObject



13
14
15
# File 'lib/dagger_ruby/cache_volume.rb', line 13

def self.root_field_name
  "cacheVolume"
end

Instance Method Details

#keyObject



17
18
19
# File 'lib/dagger_ruby/cache_volume.rb', line 17

def key
  get_scalar("key")
end

#syncObject



21
22
23
24
# File 'lib/dagger_ruby/cache_volume.rb', line 21

def sync
  get_scalar("id") # Force execution by getting ID
  self
end