Class: Syobocal::Comment::Staff
- Inherits:
-
Object
- Object
- Syobocal::Comment::Staff
- Defined in:
- lib/syobocal/comment/staff.rb
Instance Attribute Summary collapse
-
#people ⇒ Object
readonly
Returns the value of attribute people.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(role, people) ⇒ Staff
constructor
A new instance of Staff.
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
#people ⇒ Object (readonly)
Returns the value of attribute people.
4 5 6 |
# File 'lib/syobocal/comment/staff.rb', line 4 def people @people end |
#role ⇒ Object (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 |