Module: Arke::Resource::Model
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/arke/resource/model.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#initialize(attributes = {}) ⇒ Object
44 45 46 |
# File 'lib/arke/resource/model.rb', line 44 def initialize(attributes={}) @_attributes = attributes end |
#inspect ⇒ Object
52 53 54 55 |
# File 'lib/arke/resource/model.rb', line 52 def inspect id = "id: ''#{self.id}'" if try(:id) "#<#{self.class.name}:0x%08x>" % (object_id * 2) end |
#to_param ⇒ Object
48 49 50 |
# File 'lib/arke/resource/model.rb', line 48 def to_param self.id end |