Class: Xrc::HostsResolver
- Inherits:
-
Object
- Object
- Xrc::HostsResolver
- Defined in:
- lib/xrc/hosts_resolver.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(domain) ⇒ HostsResolver
constructor
A new instance of HostsResolver.
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
#domain ⇒ Object (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
#call ⇒ Object
13 14 15 |
# File 'lib/xrc/hosts_resolver.rb', line 13 def call resolved_hosts + [domain] end |