Class: IFormat::Session

Inherits:
Base
  • Object
show all
Defined in:
lib/iformat/session.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize, lazy_attr_reader

Constructor Details

This class inherits a constructor from IFormat::Base

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


14
15
16
# File 'lib/iformat/session.rb', line 14

def ==(other)
  super || (other.class == self.class && other.id == self.id)
end

#idObject



8
9
10
# File 'lib/iformat/session.rb', line 8

def id
  @id ||= @attrs[:session_id]
end