Class: Camdram::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/camdram/base.rb

Direct Known Subclasses

Diary, Event, Image, News, Organisation, Performance, Person, Role, Search, Show, User, Venue

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Object

Instantiate a new object from a JSON hash

Parameters:

  • options (Hash) (defaults to: {})

    A single JSON hash with symbolized keys.



11
12
13
# File 'lib/camdram/base.rb', line 11

def initialize(options = {})
  set_from_hash(options)
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/camdram/base.rb', line 5

def id
  @id
end