Class: Maimailog::Data::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/maimailog/data/status.rb

Overview

ステータスのデータクラス

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, rating, rating_max) ⇒ Status

Returns a new instance of Status.



9
10
11
12
13
# File 'lib/maimailog/data/status.rb', line 9

def initialize(name, rating, rating_max)
  @name = name
  @rating = rating
  @rating_max = rating_max
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/maimailog/data/status.rb', line 7

def name
  @name
end

#ratingObject (readonly)

Returns the value of attribute rating.



7
8
9
# File 'lib/maimailog/data/status.rb', line 7

def rating
  @rating
end

#rating_maxObject (readonly)

Returns the value of attribute rating_max.



7
8
9
# File 'lib/maimailog/data/status.rb', line 7

def rating_max
  @rating_max
end