class TripAdvisorBest::Landmark

Attributes

description[RW]
location[RW]
name[RW]
ranking[RW]
url[RW]

Public Class Methods

all() click to toggle source
# File lib/tripadvisor_best/landmark.rb, line 12
def self.all
  @@all
end
find(i) click to toggle source
# File lib/tripadvisor_best/landmark.rb, line 16
def self.find(i)
  self.all[i]
end
new(attributes) click to toggle source
Calls superclass method TripAdvisorBest::Place::new
# File lib/tripadvisor_best/landmark.rb, line 7
def initialize(attributes)
  super
  self.class.all << self
end