Class: FireEagle::Locations

Inherits:
Object
  • Object
show all
Includes:
Enumerable, HappyMapper
Defined in:
lib/fireeagle/locations.rb

Instance Method Summary collapse

Instance Method Details

#[](*args) ⇒ Object Also known as: slice



12
13
14
# File 'lib/fireeagle/locations.rb', line 12

def [](*args)
  locations[*args]
end

#each(&block) ⇒ Object



18
19
20
# File 'lib/fireeagle/locations.rb', line 18

def each(&block)
  locations.each(&block)
end

#firstObject



22
23
24
# File 'lib/fireeagle/locations.rb', line 22

def first
  locations.first
end

#lastObject



26
27
28
# File 'lib/fireeagle/locations.rb', line 26

def last
  locations.last
end

#lengthObject Also known as: size



30
31
32
# File 'lib/fireeagle/locations.rb', line 30

def length
  locations.length
end