Module: MetristIpa

Defined in:
lib/metrist_ipa.rb,
lib/metrist_ipa/version.rb

Defined Under Namespace

Modules: NetHttpExtensions

Constant Summary collapse

VERSION =
'0.6.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.hostObject



5
6
7
# File 'lib/metrist_ipa.rb', line 5

def host
  @host || ENV["METRIST_ORCHESTRATOR_HOST"] || "127.0.0.1"
end

.portObject



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

def port
  @port || (ENV["METRIST_ORCHESTRATOR_PORT"] || "51712").to_i
end

Class Method Details

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (MetristIpa)

    the object that the method was called on



11
12
13
# File 'lib/metrist_ipa.rb', line 11

def config
  yield self
end