Sha256: ef430498694b9ee258d88302b155616b900115374b0b51390fccc1668af4a7f1
Contents?: true
Size: 424 Bytes
Versions: 3
Compression:
Stored size: 424 Bytes
Contents
module Osm class Grouping 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
osm-0.0.5 | lib/osm/grouping.rb |
osm-0.0.4 | lib/osm/grouping.rb |
osm-0.0.3 | lib/osm/grouping.rb |