Class: MasonellwoodCliAppTwo::City
- Inherits:
-
Object
- Object
- MasonellwoodCliAppTwo::City
- Defined in:
- lib/masonellwood_cli_app_two/city.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(name, url) ⇒ City
constructor
A new instance of City.
Constructor Details
#initialize(name, url) ⇒ City
Returns a new instance of City.
3 4 5 6 |
# File 'lib/masonellwood_cli_app_two/city.rb', line 3 def initialize(name, url) @url = url @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/masonellwood_cli_app_two/city.rb', line 2 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
2 3 4 |
# File 'lib/masonellwood_cli_app_two/city.rb', line 2 def url @url end |