Class: IFormat::Session
Instance Attribute Summary
Attributes inherited from Base
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
14 15 16 |
# File 'lib/iformat/session.rb', line 14 def ==(other) super || (other.class == self.class && other.id == self.id) end |
#id ⇒ Object
8 9 10 |
# File 'lib/iformat/session.rb', line 8 def id @id ||= @attrs[:session_id] end |