Class: Pubnub::PubNubHTTParty

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/pubnub/client.rb

Instance Method Summary collapse

Instance Method Details

#first_run?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/pubnub/client.rb', line 13

def first_run?
  @first_run ? true : false
end

#send_request(path, options = {}, &block) ⇒ Object



17
18
19
20
21
22
23
24
25
# File 'lib/pubnub/client.rb', line 17

def send_request(path, options={}, &block)
  if @first_run.nil?
    @first_run = true
  else
    @first_run = false
  end
  self.class.get path, options

end