Class: Springnote::Base

Inherits:
ActiveResource::Base
  • Object
show all
Extended by:
ActiveResourceExtension
Defined in:
lib/springnote/base.rb

Direct Known Subclasses

Attachment, Comment, Lock, Page, Revision

Instance Method Summary collapse

Methods included from ActiveResourceExtension

find

Instance Method Details

#idObject



9
10
11
# File 'lib/springnote/base.rb', line 9

def id
  attributes["identifier"]
end

#id=(id) ⇒ Object



13
14
15
# File 'lib/springnote/base.rb', line 13

def id=(id)
  attributes["identifier"] = id
end

#to_paramObject



17
18
19
# File 'lib/springnote/base.rb', line 17

def to_param
  identifier.to_s
end