Class: Sinicum::Jcr::Dam::Image
- Defined in:
- lib/sinicum/jcr/dam/image.rb
Overview
Public: Wrapper around image files stored in Magnolia’s DAM workspace.
Constant Summary
Constants inherited from Document
Constants inherited from Node
Node::ARRAY_CHILD_NODE_PATTERN, Node::BOOL_FALSE_STRING_VALUE, Node::BOOL_TRUE_STRING_VALUE, Node::IMPLICIT_ARRAY_REGEX, Node::ISO_8601_DATE_REGEX, Node::ISO_8601_REGEX, Node::METADATA_NODE_NAME, Node::META_KEY, Node::NODES_KEY, Node::PROHIBITED_JCR_PROPERTIES, Node::PROHIBITED_MGNL_PROPERTIES, Node::PROPERTIES_KEY, Node::SETABLE_JCR_PROPERTIES, Node::SETABLE_MGNL_PROPERTIES
Constants included from NodeQueries
NodeQueries::BINARY_PREFIX, NodeQueries::PATH_DELIMITER, NodeQueries::UUID_PREFIX
Instance Method Summary collapse
Methods inherited from Document
#date, #file_name, #file_size, #mime_type, #path, #properties
Methods inherited from Node
#[], #children, #id, #initialize, #inspect, #parent, #path, #persisted?, #to_model, #to_s
Methods included from Mgnl4Compatibility
#mgnl_activatorid, #mgnl_authorid
Constructor Details
This class inherits a constructor from Sinicum::Jcr::Node
Instance Method Details
#alt ⇒ Object
14 15 16 |
# File 'lib/sinicum/jcr/dam/image.rb', line 14 def alt self[:subject] || "" end |
#height(converter_name = nil) ⇒ Object
10 11 12 |
# File 'lib/sinicum/jcr/dam/image.rb', line 10 def height(converter_name = nil) fetch_value(:height, converter_name) end |
#width(converter_name = nil) ⇒ Object
6 7 8 |
# File 'lib/sinicum/jcr/dam/image.rb', line 6 def width(converter_name = nil) fetch_value(:width, converter_name) end |