Class: Hipbot::Presence

Inherits:
Struct
  • Object
show all
Defined in:
lib/hipbot/presence.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



2
3
4
# File 'lib/hipbot/presence.rb', line 2

def body
  @body
end

#roomObject

Returns the value of attribute room

Returns:

  • (Object)

    the current value of room



2
3
4
# File 'lib/hipbot/presence.rb', line 2

def room
  @room
end

#senderObject

Returns the value of attribute sender

Returns:

  • (Object)

    the current value of sender



2
3
4
# File 'lib/hipbot/presence.rb', line 2

def sender
  @sender
end

Instance Method Details

#for?(_) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/hipbot/presence.rb', line 3

def for? _
  true
end

#private?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/hipbot/presence.rb', line 7

def private?
  room.nil?
end