Class: Crags::Location
- Inherits:
-
Object
- Object
- Crags::Location
- Defined in:
- lib/crags/location.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
Instance Method Summary collapse
-
#initialize(domain) ⇒ Location
constructor
A new instance of Location.
- #url ⇒ Object
Constructor Details
#initialize(domain) ⇒ Location
Returns a new instance of Location.
5 6 7 |
# File 'lib/crags/location.rb', line 5 def initialize(domain) @domain = domain end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
3 4 5 |
# File 'lib/crags/location.rb', line 3 def domain @domain end |
Instance Method Details
#url ⇒ Object
9 10 11 |
# File 'lib/crags/location.rb', line 9 def url "http://#{domain}" end |