Class: Xrc::HostsResolver

Inherits:
Object
  • Object
show all
Defined in:
lib/xrc/hosts_resolver.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain) ⇒ HostsResolver

Returns a new instance of HostsResolver.



9
10
11
# File 'lib/xrc/hosts_resolver.rb', line 9

def initialize(domain)
  @domain = domain
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



7
8
9
# File 'lib/xrc/hosts_resolver.rb', line 7

def domain
  @domain
end

Class Method Details

.call(*args) ⇒ Object



3
4
5
# File 'lib/xrc/hosts_resolver.rb', line 3

def self.call(*args)
  new(*args).call
end

Instance Method Details

#callObject



13
14
15
# File 'lib/xrc/hosts_resolver.rb', line 13

def call
  resolved_hosts + [domain]
end