Class: Syobocal::Comment::Staff

Inherits:
Object
  • Object
show all
Defined in:
lib/syobocal/comment/staff.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role, people) ⇒ Staff

Returns a new instance of Staff.



6
7
8
# File 'lib/syobocal/comment/staff.rb', line 6

def initialize(role, people)
  @role, @people = role, people
end

Instance Attribute Details

#peopleObject (readonly)

Returns the value of attribute people.



4
5
6
# File 'lib/syobocal/comment/staff.rb', line 4

def people
  @people
end

#roleObject (readonly)

Returns the value of attribute role.



4
5
6
# File 'lib/syobocal/comment/staff.rb', line 4

def role
  @role
end

Instance Method Details

#==(other) ⇒ Object



10
11
12
# File 'lib/syobocal/comment/staff.rb', line 10

def ==(other)
  other.instance_of?(self.class) && other.role == role && other.people == people
end