class Swappy::ConfigSet

Attributes

json_data[R]

Public Class Methods

new(json_data) click to toggle source
# File lib/swappy/config_set.rb, line 7
def initialize(json_data)
  @json_data = json_data
end

Public Instance Methods

configs() click to toggle source
# File lib/swappy/config_set.rb, line 29
def configs
  @configs ||= properties['configs'].map { |config| Config.new(config, link_root, source_root) }
end
each(&block) click to toggle source
# File lib/swappy/config_set.rb, line 11
def each(&block)
  configs.each do |config|
    block.call(config)
  end
end
name() click to toggle source
# File lib/swappy/config_set.rb, line 17
def name
  json_data[0]
end
source_root() click to toggle source
# File lib/swappy/config_set.rb, line 25
def source_root
  properties['source_root']
end

Protected Instance Methods

properties() click to toggle source
# File lib/swappy/config_set.rb, line 35
def properties
  json_data[1]
end