Module: PodBuilder::Actions

Defined in:
lib/pod_builder/actions.rb

Defined Under Namespace

Classes: Item

Class Method Summary collapse

Class Method Details

.load(hash) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/pod_builder/actions.rb', line 6

def self.load(hash)
  actions = {}
  if json = hash["switch"]
    actions[:switch] = Item.new("switch", json)
  end
  if json = hash["build"]
    actions[:build] = Item.new("build", json)
  end
  
  return actions
end