Class: Feed

Inherits:
Object
  • Object
show all
Defined in:
lib/citibikenyc/feeds.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/citibikenyc/feeds.rb', line 4

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



4
5
6
# File 'lib/citibikenyc/feeds.rb', line 4

def url
  @url
end