class ConfigKit::IDCData

Public Class Methods

new(name, env, opts) click to toggle source
Calls superclass method ConfigKit::SlashedHash::new
# File lib/config_kit/idc_data.rb, line 5
def initialize(name, env, opts)
  @name, @env = name, env
  @api_version = opts.fetch(:api_version, '1.0')
  @kind = opts.fetch(:kind, 'config_kit')
  @bind_data = binding_data
  super(@bind_data)
end

Public Instance Methods

binding_data() click to toggle source
# File lib/config_kit/idc_data.rb, line 24
def binding_data
  { @kind => binding_idc }
end
binding_idc() click to toggle source
# File lib/config_kit/idc_data.rb, line 20
def binding_idc
  { 'idc' => data}
end
data() click to toggle source
# File lib/config_kit/idc_data.rb, line 13
def data
  { 
    'name' => @name,
    'env' => @env
  }
end