Class: DaggerRuby::Secret

Inherits:
DaggerObject show all
Defined in:
lib/dagger_ruby/secret.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, from_id, #id, #initialize

Constructor Details

This class inherits a constructor from DaggerRuby::DaggerObject

Class Method Details

.root_field_nameObject



7
8
9
# File 'lib/dagger_ruby/secret.rb', line 7

def self.root_field_name
  "secret"
end

Instance Method Details

#nameObject



11
12
13
# File 'lib/dagger_ruby/secret.rb', line 11

def name
  get_scalar("name")
end

#plaintextObject



15
16
17
# File 'lib/dagger_ruby/secret.rb', line 15

def plaintext
  get_scalar("plaintext")
end

#syncObject



19
20
21
22
# File 'lib/dagger_ruby/secret.rb', line 19

def sync
  get_scalar("id")
  self
end