Class: Continuum::Metadata
- Inherits:
-
Object
- Object
- Continuum::Metadata
- Defined in:
- src/lib/continuum/metadata.rb
Instance Attribute Summary collapse
- #content_type ⇒ String
- #doc_height ⇒ Integer
- #doc_width ⇒ Integer
- #engine_success ⇒ Boolean
- #height ⇒ Integer
- #orientation ⇒ String
- #redirected_url ⇒ String
- #title ⇒ String
- #user_agent ⇒ String
- #width ⇒ Integer
Instance Method Summary collapse
-
#initialize(content_type: nil, title: nil, redirected_url: nil, width: nil, height: nil, doc_width: nil, doc_height: nil, orientation: nil, user_agent: nil, engine_success: nil) ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
#initialize(content_type: nil, title: nil, redirected_url: nil, width: nil, height: nil, doc_width: nil, doc_height: nil, orientation: nil, user_agent: nil, engine_success: nil) ⇒ Metadata
Returns a new instance of Metadata.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'src/lib/continuum/metadata.rb', line 47 def initialize( content_type: nil, title: nil, redirected_url: nil, width: nil, height: nil, doc_width: nil, doc_height: nil, orientation: nil, user_agent: nil, engine_success: nil ) @content_type = content_type @title = title @redirected_url = redirected_url @width = width @height = height @doc_width = doc_width @doc_height = doc_height @orientation = orientation @user_agent = user_agent @engine_success = engine_success end |
Instance Attribute Details
#content_type ⇒ String
8 9 10 |
# File 'src/lib/continuum/metadata.rb', line 8 def content_type @content_type end |
#doc_height ⇒ Integer
26 27 28 |
# File 'src/lib/continuum/metadata.rb', line 26 def doc_height @doc_height end |
#doc_width ⇒ Integer
23 24 25 |
# File 'src/lib/continuum/metadata.rb', line 23 def doc_width @doc_width end |
#engine_success ⇒ Boolean
35 36 37 |
# File 'src/lib/continuum/metadata.rb', line 35 def engine_success @engine_success end |
#height ⇒ Integer
20 21 22 |
# File 'src/lib/continuum/metadata.rb', line 20 def height @height end |
#orientation ⇒ String
29 30 31 |
# File 'src/lib/continuum/metadata.rb', line 29 def orientation @orientation end |
#redirected_url ⇒ String
14 15 16 |
# File 'src/lib/continuum/metadata.rb', line 14 def redirected_url @redirected_url end |
#title ⇒ String
11 12 13 |
# File 'src/lib/continuum/metadata.rb', line 11 def title @title end |
#user_agent ⇒ String
32 33 34 |
# File 'src/lib/continuum/metadata.rb', line 32 def user_agent @user_agent end |
#width ⇒ Integer
17 18 19 |
# File 'src/lib/continuum/metadata.rb', line 17 def width @width end |