class SomTimer::Exercise

Attributes

category[R]
duration[R]
id[R]
url[R]

Public Class Methods

new(attributes) click to toggle source
# File lib/som_timer/poros/exercise.rb, line 7
def initialize(attributes)
  @id = attributes[:id]
  @url = attributes[:url]
  @duration = attributes[:duration]
  @category = attributes[:category].split(".")[1]
end