Class: LoLBase::SummaryStats::Summary

Inherits:
Object
  • Object
show all
Defined in:
lib/lolbase/data/stats.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Summary

Returns a new instance of Summary.



37
38
39
40
41
# File 'lib/lolbase/data/stats.rb', line 37

def initialize(params)
  @name = params[:name]
  @last_modified = params[:last_modified]
  @stats = params[:stats]
end

Instance Attribute Details

#last_modifiedObject (readonly)

Returns the value of attribute last_modified.



35
36
37
# File 'lib/lolbase/data/stats.rb', line 35

def last_modified
  @last_modified
end

#nameObject (readonly)

Returns the value of attribute name.



35
36
37
# File 'lib/lolbase/data/stats.rb', line 35

def name
  @name
end

#statsObject (readonly)

Returns the value of attribute stats.



35
36
37
# File 'lib/lolbase/data/stats.rb', line 35

def stats
  @stats
end