Class: Ubi::Memoria::Image

Inherits:
Base
  • Object
show all
Defined in:
lib/ubi/memorias/image.rb

Overview

Show me your papers!

Instance Attribute Summary collapse

Attributes inherited from Base

#hint, #opts, #text

Class Method Summary collapse

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

#sizeObject (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

#parserObject



8
9
10
# File 'lib/ubi/memorias/image.rb', line 8

def parser
  @size = []
end