Class: KManager::Resources::UnknownFileResource
- Inherits:
-
FileResource
- Object
- BaseResource
- FileResource
- KManager::Resources::UnknownFileResource
- Defined in:
- lib/k_manager/resources/file_resources/unknown_file_resource.rb
Overview
Represents a Unknown file resource.
Constant Summary
Constants inherited from FileResource
FileResource::KNOWN_EXTENSIONS
Constants inherited from BaseResource
Instance Attribute Summary
Attributes inherited from BaseResource
#area, #content, #content_type, #documents, #namespace, #status, #uri
Instance Method Summary collapse
-
#initialize(**opts) ⇒ UnknownFileResource
constructor
A new instance of UnknownFileResource.
- #load_document ⇒ Object
Methods inherited from FileResource
#attribute_values, #debug, #default_scheme, #infer_key, #recreate, #resource_path, #resource_relative_path, #resource_valid?, #source_path
Methods inherited from BaseResource
#activated?, #alive?, #attach_document, #attribute_values, #content_loaded?, #debug, #default_content_type, #default_scheme, #documents_loaded?, #documents_preloaded?, #documents_registered?, #fire_action, #fire_next_action, #host, #infer_content_type, #infer_key, #load_content, #new_document, #preload_document, #register_document, #scheme, #source_path, valid_action?
Constructor Details
#initialize(**opts) ⇒ UnknownFileResource
Returns a new instance of UnknownFileResource.
7 8 9 10 |
# File 'lib/k_manager/resources/file_resources/unknown_file_resource.rb', line 7 def initialize(**opts) super(**opts) @type = :unknown end |
Instance Method Details
#load_document ⇒ Object
12 13 14 |
# File 'lib/k_manager/resources/file_resources/unknown_file_resource.rb', line 12 def load_document document.data = {} end |