Sha256: f9a96731dbc41dd0c5f6afec141173f2402c1b90b17846163c9f3a6db8b39aae
Contents?: true
Size: 488 Bytes
Versions: 3
Compression:
Stored size: 488 Bytes
Contents
module Marver module Summary class Event attr_reader :id, :name, :resource_uri, :type def initialize(json) @id = json['id'].to_i @name = json['name'] @resource_uri = json['resourceURI'] @type = json['type'] || nil end def full response = Marver::API::Response.new(RestClient.get(@resource_uri)) data = Marver::DataContainer.new(response).results Marver::Event.build(data) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
marver-0.0.6 | lib/marver/entities/summary/event.rb |
marver-0.0.5 | lib/marver/entities/summary/event.rb |
marver-0.0.4 | lib/marver/entities/summary/event.rb |