Class: Springnote::Base
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Springnote::Base
show all
- Extended by:
- ActiveResourceExtension
- Defined in:
- lib/springnote/base.rb
Instance Method Summary
collapse
find
Instance Method Details
#id ⇒ Object
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_param ⇒ Object
17
18
19
|
# File 'lib/springnote/base.rb', line 17
def to_param
identifier.to_s
end
|