lib/osm/grouping.rb in osm-0.0.2 vs lib/osm/grouping.rb in osm-0.0.3
- old
+ new
@@ -1,16 +1,17 @@
module Osm
class Grouping
- attr_reader :id, :name, :active
+ attr_reader :id, :name, :active, :points
# Initialize a new Grouping using the hash returned by the API call
# @param data the hash of data for the object returned by the API
def initialize(data)
@id = Osm::to_i_or_nil(data['patrolid'])
@name = data['name']
@active = (data['active'] == 1)
+ @points = Osm::to_i_or_nil(data['points'])
end
end
end