Class: CaptiveRelease::ExpoConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/captive_release/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#build_workflowObject

Returns the value of attribute build_workflow

Returns:

  • (Object)

    the current value of build_workflow



8
9
10
# File 'lib/captive_release/config.rb', line 8

def build_workflow
  @build_workflow
end

Class Method Details

.from_hash(h) ⇒ Object



9
10
11
12
13
# File 'lib/captive_release/config.rb', line 9

def self.from_hash(h)
  return nil unless h

  new(build_workflow: h["build_workflow"] || "build.yml")
end

Instance Method Details

#to_hObject



15
16
17
# File 'lib/captive_release/config.rb', line 15

def to_h
  { "build_workflow" => build_workflow }
end