Class: Naminori::Service::Configure

Inherits:
Object
  • Object
show all
Defined in:
lib/naminori/service/configure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Configure

Returns a new instance of Configure.



6
7
8
9
10
11
12
13
14
15
# File 'lib/naminori/service/configure.rb', line 6

def initialize(options)
  @role      = options[:role]
  @port      = options[:port]
  @protocols = options[:protocols]
  @vip       = options[:vip]
  @method    = options[:method]
  @query     = options[:query]
  @retry     = options[:retry]
  @timeout   = options[:timeout]
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



5
6
7
# File 'lib/naminori/service/configure.rb', line 5

def method
  @method
end

#portObject (readonly)

Returns the value of attribute port.



5
6
7
# File 'lib/naminori/service/configure.rb', line 5

def port
  @port
end

#protocolsObject (readonly)

Returns the value of attribute protocols.



5
6
7
# File 'lib/naminori/service/configure.rb', line 5

def protocols
  @protocols
end

#queryObject (readonly)

Returns the value of attribute query.



5
6
7
# File 'lib/naminori/service/configure.rb', line 5

def query
  @query
end

#retryObject (readonly)

Returns the value of attribute retry.



5
6
7
# File 'lib/naminori/service/configure.rb', line 5

def retry
  @retry
end

#roleObject (readonly)

Returns the value of attribute role.



5
6
7
# File 'lib/naminori/service/configure.rb', line 5

def role
  @role
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



5
6
7
# File 'lib/naminori/service/configure.rb', line 5

def timeout
  @timeout
end

#vipObject (readonly)

Returns the value of attribute vip.



5
6
7
# File 'lib/naminori/service/configure.rb', line 5

def vip
  @vip
end