Class: WhereTo::Location
- Inherits:
-
Object
- Object
- WhereTo::Location
- Includes:
- Comparable
- Defined in:
- lib/where_to/location.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#folder ⇒ Object
Returns the value of attribute folder.
-
#location ⇒ Object
Returns the value of attribute location.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(from_location) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(from_location) ⇒ Location
Returns a new instance of Location.
6 7 8 9 |
# File 'lib/where_to/location.rb', line 6 def initialize(from_location) @location = from_location set_filename_folder_from_location end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
4 5 6 |
# File 'lib/where_to/location.rb', line 4 def filename @filename end |
#folder ⇒ Object
Returns the value of attribute folder.
4 5 6 |
# File 'lib/where_to/location.rb', line 4 def folder @folder end |
#location ⇒ Object
Returns the value of attribute location.
4 5 6 |
# File 'lib/where_to/location.rb', line 4 def location @location end |
Instance Method Details
#<=>(other) ⇒ Object
11 12 13 |
# File 'lib/where_to/location.rb', line 11 def <=>(other) location <=> other end |