Class: Sem::API::EnvVars

Inherits:
Base
  • Object
show all
Extended by:
Traits::AssociatedWithSharedConfig
Defined in:
lib/sem/api/env_vars.rb

Constant Summary

Constants inherited from Base

Base::CREDENTIALS_PATH

Class Method Summary collapse

Methods included from Traits::AssociatedWithSharedConfig

add_to_shared_config, list_for_shared_config, remove_from_shared_config

Methods inherited from Base

client

Class Method Details

.apiObject



6
7
8
# File 'lib/sem/api/env_vars.rb', line 6

def self.api
  client.env_vars
end

.to_hash(env_var) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/sem/api/env_vars.rb', line 10

def self.to_hash(env_var)
  {
    :id => env_var.id,
    :name => env_var.name,
    :encrypted? => env_var.encrypted,
    :content => env_var.content
  }
end