Class: NinjaBlocks::User

Inherits:
Base
  • Object
show all
Defined in:
lib/ninja_blocks/user.rb

Instance Method Summary collapse

Methods inherited from Base

#connection, #delete, #execute, #get, #post, #put, #put_json, #token

Instance Method Details

#infoObject



3
4
5
# File 'lib/ninja_blocks/user.rb', line 3

def info
  get('https://api.ninja.is/rest/v0/user')
end

#pusher_channelObject



11
12
13
# File 'lib/ninja_blocks/user.rb', line 11

def pusher_channel
  get('https://api.ninja.is/rest/v0/user/pusherchannel')
end

#streamObject



7
8
9
# File 'lib/ninja_blocks/user.rb', line 7

def stream
  get('https://api.ninja.is/rest/v0/user/stream')
end