Sha256: 783f88ae9afecfc0f6f7afd117131ff6660aed9f337b9d29644f9a8f8da70e72

Contents?: true

Size: 464 Bytes

Versions: 6

Compression:

Stored size: 464 Bytes

Contents

module Osm

  class ProgrammeActivity

    attr_reader :evening_id, :activity_id, :title, :notes

    # Initialize a new EveningActivity using the hash returned by the API call
    # @param data the hash of data for the object returned by the API
    def initialize(data)
      @evening_id = Osm::to_i_or_nil(data['eveningid'])
      @activity_id = Osm::to_i_or_nil(data['activityid'])
      @title = data['title']
      @notes = data['notes']
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
osm-0.0.5 lib/osm/programme_activity.rb
osm-0.0.4 lib/osm/programme_activity.rb
osm-0.0.3 lib/osm/programme_activity.rb
osm-0.0.2 lib/osm/programme_activity.rb
osm-0.0.1 lib/osm/programme_activity.rb
osm-0.0.1.alpha lib/osm/programme_activity.rb