Module: ExploreMars
- Defined in:
- lib/explore_mars.rb,
lib/explore_mars/call.rb,
lib/explore_mars/photo.rb,
lib/explore_mars/version.rb,
lib/explore_mars/sol_query.rb,
lib/explore_mars/date_query.rb
Defined Under Namespace
Classes: Call, DateQuery, Photo, SolQuery
Constant Summary
collapse
- VERSION =
"0.4.4"
Class Method Summary
collapse
Class Method Details
.get_by_date(rover, date, camera = nil) ⇒ Object
36
37
38
|
# File 'lib/explore_mars.rb', line 36
def self.get_by_date(rover, date, camera=nil)
DateQuery.new(rover, date, camera).get
end
|
.get_by_sol(rover, sol, camera = nil) ⇒ Object
32
33
34
|
# File 'lib/explore_mars.rb', line 32
def self.get_by_sol(rover, sol, camera=nil)
SolQuery.new(rover, sol, camera).get
end
|
.help ⇒ Object
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/explore_mars.rb', line 15
def self.help
puts "- use ExploreMars#get_by_sol(rover, sol, camera) to receive a collection of photos by sol"
puts "- use ExploreMars#get_by_date(rover, date, camera) to receive a collection of photos by Earth date"
puts "-- rover argument should be the name of one of NASA's Mars rovers"
puts "-- sol argument should be a number representing the Martian day on which the photo was taken"
puts "-- date argument should be a string formmated as yyyy-mm-dd"
puts "-- camera represents the camera with which it was taken, options are:"
puts "--- 'FHAZ' (Front Hazard Avoidance Camera)"
puts "--- 'RHAZ' (Rear Hazard Avoidance Camera)"
puts "--- 'MAST' (Mast Camera)"
puts "--- 'CHEMCAM' (Chemistry and Camera Complex)"
puts "--- 'NAVCAM' (Navigation Camera)"
puts "--- 'MAHLI' (Mars Hand Lens Imager)"
puts "--- 'MARDI' (Mars Descent Imager)"
puts "- ExploreMars::Photo#src will return the source url for the photo"
end
|