Class: Syobocal::Comment::Cast

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(character, people) ⇒ Cast

Returns a new instance of Cast.



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

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

Instance Attribute Details

#characterObject (readonly)

Returns the value of attribute character.



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

def character
  @character
end

#peopleObject (readonly)

Returns the value of attribute people.



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

def people
  @people
end

Instance Method Details

#==(other) ⇒ Object



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

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