Module: HipChat

Defined in:
lib/jibbajabba/room.rb,
lib/jibbajabba/hip_chat.rb

Defined Under Namespace

Classes: Room

Constant Summary collapse

URL =
'https://api.hipchat.com/v2/'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



6
7
8
# File 'lib/jibbajabba/hip_chat.rb', line 6

def api_key
  @api_key
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (HipChat)

    the object that the method was called on



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

def configure
  yield self if block_given?
end

.credentialsObject



12
13
14
# File 'lib/jibbajabba/hip_chat.rb', line 12

def credentials
  {'Authorization' => 'Bearer ' + api_key}
end