Sha256: 16c5b270b969ed04c8d8acb759bd9327c239dee0ffe67d6e5914e8ad060e6533
Contents?: true
Size: 493 Bytes
Versions: 4
Compression:
Stored size: 493 Bytes
Contents
class LessNeglectApi class ActionEvent < Event attr_accessor :note, :links def add_link(name, href) self.links ||= [] self.links << ActionLink.new({ :name => name, :href => href }) end def as_json(options={}) super.merge({ :klass => "actionevent", :note => self.note, :links => self.links.nil? ? nil : self.links.as_json }).as_json(options) end end class ActionLink < ApiObject attr_accessor :name, :href end end
Version data entries
4 entries across 4 versions & 1 rubygems