Class: Feed
- Inherits:
-
Object
- Object
- Feed
- Defined in:
- lib/citibikenyc/feeds.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(name, url) ⇒ Feed
constructor
A new instance of Feed.
Constructor Details
#initialize(name, url) ⇒ Feed
Returns a new instance of Feed.
6 7 8 |
# File 'lib/citibikenyc/feeds.rb', line 6 def initialize @name = @url = "" end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/citibikenyc/feeds.rb', line 4 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
4 5 6 |
# File 'lib/citibikenyc/feeds.rb', line 4 def url @url end |