Class: Igniter::Embed::HostBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/igniter/embed/host_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(config:) ⇒ HostBuilder

Returns a new instance of HostBuilder.



6
7
8
# File 'lib/igniter/embed/host_builder.rb', line 6

def initialize(config:)
  @config = config
end

Instance Method Details

#cache(value) ⇒ Object



22
23
24
# File 'lib/igniter/embed/host_builder.rb', line 22

def cache(value)
  config.cache = value
end

#contract(definition, as: nil) ⇒ Object



26
27
28
# File 'lib/igniter/embed/host_builder.rb', line 26

def contract(definition, as: nil)
  config.contract(definition, as: as)
end

#contracts(&block) ⇒ Object



30
31
32
# File 'lib/igniter/embed/host_builder.rb', line 30

def contracts(&block)
  config.contracts(&block)
end

#owner(value) ⇒ Object



10
11
12
# File 'lib/igniter/embed/host_builder.rb', line 10

def owner(value)
  config.owner(value)
end

#path(value) ⇒ Object



14
15
16
# File 'lib/igniter/embed/host_builder.rb', line 14

def path(value)
  config.path(value)
end

#root(value) ⇒ Object



18
19
20
# File 'lib/igniter/embed/host_builder.rb', line 18

def root(value)
  config.root(value)
end