Class: HipChat::ApiVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/hipchat/api_version.rb

Direct Known Subclasses

Client, Room

Defined Under Namespace

Classes: Client, Room, User

Instance Method Summary collapse

Instance Method Details

#bool_val(opt) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/hipchat/api_version.rb', line 6

def bool_val(opt)
  if version.eql?('v1')
    opt ? 1 : 0
  else
    opt
  end
end