Sha256: f4b03c3e0cc09131fdf9b3caad90df651700b74e5ca308052b6435b2e74dc471
Contents?: true
Size: 524 Bytes
Versions: 3
Compression:
Stored size: 524 Bytes
Contents
module Clever class Event < APIResource include Clever::APIOperations::List def optional_attributes [] end def object klass = Util.types_to_clever_class(type_pieces[0]) klass ||= CleverObject klass.construct_from(data[:object]) end def previous_attributes data[:previous_attributes] end def action type_pieces[1] end def self.url "v1.1/push/events" end private def type_pieces type.split(".") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
clever-ruby-0.3.0 | lib/clever-ruby/event.rb |
clever-ruby-0.2.0 | lib/clever-ruby/event.rb |
clever-ruby-0.1.0 | lib/clever-ruby/event.rb |