Class: Cenit::API::Record

Inherits:
Object
  • Object
show all
Includes:
HttpDestroyable, HttpReadable, HttpUpdateable, UrlSlug
Defined in:
lib/cenit/api/record.rb

Instance Attribute Summary

Attributes included from UrlSlug

#parent, #slug

Instance Method Summary collapse

Methods included from HttpDestroyable

#delete, #destroy

Methods included from HttpQuery

#method_missing, #query

Methods included from HttpUpdateable

#post, #update

Methods included from HttpDataRequester

#do_data_request, #do_request

Methods included from HttpReadable

#get

Methods included from UrlSlug

#initialize, #url

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Cenit::API::HttpQuery

Instance Method Details

#idObject



11
12
13
# File 'lib/cenit/api/record.rb', line 11

def id
  slug
end

#id=(id) ⇒ Object



15
16
17
# File 'lib/cenit/api/record.rb', line 15

def id=(id)
  self.slug = id
end