mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-18 21:28:08 +01:00
Code style fixes
This commit is contained in:
parent
c6bbc67dab
commit
d8acf60049
72 changed files with 458 additions and 594 deletions
|
|
@ -1,8 +1,7 @@
|
|||
module Stats
|
||||
|
||||
class Chart
|
||||
|
||||
attr_reader :action, :height, :width
|
||||
|
||||
def initialize(action, dimensions = {})
|
||||
@action = action
|
||||
@height = dimensions.fetch(:height) { 250 }
|
||||
|
|
@ -12,7 +11,5 @@ module Stats
|
|||
def dimensions
|
||||
"#{width}x#{height}"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue