Skip to content

Instantly share code, notes, and snippets.

@staszek
Created December 4, 2012 10:17
Show Gist options
  • Save staszek/4202438 to your computer and use it in GitHub Desktop.
Save staszek/4202438 to your computer and use it in GitHub Desktop.
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