Module: SDKHost

Defined in:
lib/graph_request.rb

Constant Summary collapse

@@host =
'https://graph.goplay.com'
@@testhost =
'https://test-graph.goplay.com'
@@test =
false

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#testObject

Returns the value of attribute test.



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

def test
  @test
end

Class Method Details

.current_hostObject



20
21
22
# File 'lib/graph_request.rb', line 20

def SDKHost.current_host
	@@test ? @@testhost : @@host
end

.test?(val = nil) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
16
17
18
# File 'lib/graph_request.rb', line 13

def SDKHost.test? val=nil
	if val 
		@@test = val
	end
	@@test
end