Sha256: 38a045b118b5088dbbc6935a0c25a12db85ee1fe61c96d86ded7f009147d6765

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

class BigbluebuttonMeeting

  attr_accessor :running, :has_been_forcibly_ended, :room

  def from_hash(hash)
    self.running = hash[:running].downcase == "true"
    self.has_been_forcibly_ended = hash[:hasBeenForciblyEnded].downcase == "true"
  end

  def ==(other)
    r = true
    [:running, :has_been_forcibly_ended, :room].each do |param|
      r = r && self.send(param) == other.send(param)
    end
    r
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bigbluebutton_rails-0.0.2 lib/classes/bigbluebutton_meeting.rb