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