Class: Boss::Images::Result
- Inherits:
-
Object
- Object
- Boss::Images::Result
- Defined in:
- lib/boss.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
- #abstract ⇒ Object
- #clickurl ⇒ Object
- #date ⇒ Object
- #filename ⇒ Object
- #format ⇒ Object
- #height ⇒ Object
-
#initialize(r) ⇒ Result
constructor
A new instance of Result.
- #mimetype ⇒ Object
- #refererclickurl ⇒ Object
- #refererurl ⇒ Object
- #size ⇒ Object
- #thumbnail_height ⇒ Object
- #thumbnail_url ⇒ Object
- #thumbnail_width ⇒ Object
- #title ⇒ Object
- #url ⇒ Object
- #width ⇒ Object
Constructor Details
#initialize(r) ⇒ Result
Returns a new instance of Result.
84 85 86 |
# File 'lib/boss.rb', line 84 def initialize(r) @result = r end |
Instance Attribute Details
#result ⇒ Object
Returns the value of attribute result.
82 83 84 |
# File 'lib/boss.rb', line 82 def result @result end |
Instance Method Details
#abstract ⇒ Object
88 89 90 |
# File 'lib/boss.rb', line 88 def abstract @result['abstract'] end |
#clickurl ⇒ Object
92 93 94 |
# File 'lib/boss.rb', line 92 def clickurl @result['clickurl'] end |
#date ⇒ Object
96 97 98 |
# File 'lib/boss.rb', line 96 def date @result['date'] end |
#filename ⇒ Object
100 101 102 |
# File 'lib/boss.rb', line 100 def filename @result['filename'] end |
#format ⇒ Object
104 105 106 |
# File 'lib/boss.rb', line 104 def format @result['format'] end |
#height ⇒ Object
108 109 110 |
# File 'lib/boss.rb', line 108 def height @result['height'].to_i end |
#mimetype ⇒ Object
112 113 114 |
# File 'lib/boss.rb', line 112 def mimetype @result['mimetype'] end |
#refererclickurl ⇒ Object
116 117 118 |
# File 'lib/boss.rb', line 116 def refererclickurl @result['refererclickurl'] end |
#refererurl ⇒ Object
120 121 122 |
# File 'lib/boss.rb', line 120 def refererurl @result['refererurl'] end |
#size ⇒ Object
124 125 126 |
# File 'lib/boss.rb', line 124 def size @result['size'].to_i end |
#thumbnail_height ⇒ Object
128 129 130 |
# File 'lib/boss.rb', line 128 def thumbnail_height @result['thumbnail_height'].to_i end |
#thumbnail_url ⇒ Object
132 133 134 |
# File 'lib/boss.rb', line 132 def thumbnail_url @result['thumbnail_url'] end |
#thumbnail_width ⇒ Object
136 137 138 |
# File 'lib/boss.rb', line 136 def thumbnail_width @result['thumbnail_width'].to_i end |
#title ⇒ Object
140 141 142 |
# File 'lib/boss.rb', line 140 def title @result['title'] end |
#url ⇒ Object
144 145 146 |
# File 'lib/boss.rb', line 144 def url @result['url'] end |
#width ⇒ Object
148 149 150 |
# File 'lib/boss.rb', line 148 def width @result['width'].to_i end |