class Gumiho::PathConfig
Attributes
hostname[R]
port[R]
protocol[R]
Public Class Methods
new(protocol, hostname, port, path)
click to toggle source
# File lib/gumiho/path_config.rb, line 8 def initialize(protocol, hostname, port, path) @protocol = protocol @hostname = hostname @port = port @path = path end
Public Instance Methods
build_path(other=nil)
click to toggle source
Builds path from given params
# File lib/gumiho/path_config.rb, line 16 def build_path(other=nil) return @route = "#{@protocol}://#{@hostname}:#{@port}#{@path}" if other==nil return @route = "#{@protocol}://#{@hostname}:#{@port}#{other}" end