Sha256: 8b91c4a571b167909f80621c3703527f8d88ef5a79025e9d4682fa6cac4d2b5b

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

class Trail
  attr_reader :id, :name, :city, :state, :country, :lat, :lng, :description, :directions, :activities
  def initialize(data)
    @id          = data['id']
    @name        = data['name']
    @city        = data['city']
    @state       = data['state']
    @country     = data['country']
    @lat         = data['lat']
    @lng         = data['lng']
    @description = data['description']
    @directions  = data['directions']
    @activities  = data['activities']
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wonder_ways-1.0.0 lib/trail.rb