Class: BBCMobileStandards::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/bbc_mobile_standards/proxy.rb

Class Method Summary collapse

Class Method Details

.hostObject



15
16
17
# File 'lib/bbc_mobile_standards/proxy.rb', line 15

def self.host
  @host
end

.host=(host) ⇒ Object



19
20
21
# File 'lib/bbc_mobile_standards/proxy.rb', line 19

def self.host=(host)
  @host = host
end

.portObject



7
8
9
# File 'lib/bbc_mobile_standards/proxy.rb', line 7

def self.port
  @port
end

.port=(number) ⇒ Object



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

def self.port=(number)
  @port = number
end

.set?Boolean

Returns:

  • (Boolean)


23
24
25
26
27
28
29
# File 'lib/bbc_mobile_standards/proxy.rb', line 23

def self.set?
  unless @host.nil?
    true
  else
    false
  end
end