Created
December 4, 2012 10:17
-
-
Save staszek/4202438 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GradingWrapper | |
def initialize(data) | |
@data = data | |
end | |
def description | |
@data['description'] | |
end | |
def scale | |
@data['scale'] | |
end | |
end | |
class TripWrapper | |
def initialize(data) | |
@data = data | |
end | |
def name | |
@data['name'] | |
end | |
def grading | |
GradingWrapper.new(@data['grading']) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment