Class: StorageRoom::DeletedEntry

Inherits:
Model show all
Defined in:
lib/storage_room/models/deleted_entry.rb

Instance Attribute Summary

Attributes inherited from Model

#skip_webhooks

Instance Method Summary collapse

Methods inherited from Model

all, create, #create, #destroy, #errors, find, index_path, #initialize, json_name, #new_record?, #reset!, #save, show_path, #to_hash, #update, #valid?

Methods inherited from Resource

handle_critical_response_errors, #loaded?, meta_data?, #reload

Methods included from Plugins

#included, #plugin, #plugins

Methods included from Accessors

#[], #as_json, #attributes, #attributes=, #eql?, #hash, #initialize, #inspect, #loaded?, #proxy?, #reset!, #response_data, #response_data=, #set_from_response_data, #to_hash

Constructor Details

This class inherits a constructor from StorageRoom::Model

Instance Method Details

#collection_urlObject



3
4
5
# File 'lib/storage_room/models/deleted_entry.rb', line 3

def collection_url
  self[:@collection_url]
end

#deleted_atObject



15
16
17
# File 'lib/storage_room/models/deleted_entry.rb', line 15

def deleted_at
  self[:@deleted_at]
end

#entry_idObject



11
12
13
# File 'lib/storage_room/models/deleted_entry.rb', line 11

def entry_id
  self[:@entry_url] ? self[:@entry_url].split('/').last : nil
end

#entry_urlObject



7
8
9
# File 'lib/storage_room/models/deleted_entry.rb', line 7

def entry_url
  self[:@entry_url]
end