Sha256: ac18159cbec2b878ad59f58845bf810764b57705e92e3b64e7099782101783ad
Contents?: true
Size: 470 Bytes
Versions: 2
Compression:
Stored size: 470 Bytes
Contents
module BlueStateDigital class EventType < ApiDataModel FIELDS = [:event_type_id, :name, :description] attr_accessor *FIELDS end class EventTypes < CollectionResource def get_event_types from_response(connection.perform_request('/event/get_available_types', {}, 'GET')) end private def from_response(response) parsed_response = JSON.parse(response) parsed_response.collect { |pet| EventType.new(pet) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blue_state_digital-0.7.0 | lib/blue_state_digital/event_type.rb |
blue_state_digital-0.6.0 | lib/blue_state_digital/event_type.rb |