Class: Ubi::Memoria::Image
Overview
Show me your papers!
Instance Attribute Summary collapse
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Attributes inherited from Base
Class Method Summary collapse
-
.regex(_hint) ⇒ Object
Email regex.
Instance Method Summary collapse
Methods inherited from Base
#==, extract_text, #format, inherited, #initialize, key, name, parse, parse!, plural, #to_s
Constructor Details
This class inherits a constructor from Ubi::Memoria::Base
Instance Attribute Details
#size ⇒ Object (readonly)
Returns the value of attribute size.
6 7 8 |
# File 'lib/ubi/memorias/image.rb', line 6 def size @size end |
Class Method Details
.regex(_hint) ⇒ Object
Email regex
19 20 21 |
# File 'lib/ubi/memorias/image.rb', line 19 def regex(_hint) /\.(jpg|png|svg)$/i end |
Instance Method Details
#parser ⇒ Object
8 9 10 |
# File 'lib/ubi/memorias/image.rb', line 8 def parser @size = [] end |