Class: Boss::Images::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/boss.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#resultObject

Returns the value of attribute result.



82
83
84
# File 'lib/boss.rb', line 82

def result
  @result
end

Instance Method Details

#abstractObject



88
89
90
# File 'lib/boss.rb', line 88

def abstract
  @result['abstract']
end

#clickurlObject



92
93
94
# File 'lib/boss.rb', line 92

def clickurl
  @result['clickurl']
end

#dateObject



96
97
98
# File 'lib/boss.rb', line 96

def date
  @result['date']
end

#filenameObject



100
101
102
# File 'lib/boss.rb', line 100

def filename
  @result['filename']
end

#formatObject



104
105
106
# File 'lib/boss.rb', line 104

def format
  @result['format']
end

#heightObject



108
109
110
# File 'lib/boss.rb', line 108

def height
  @result['height'].to_i
end

#mimetypeObject



112
113
114
# File 'lib/boss.rb', line 112

def mimetype
  @result['mimetype']
end

#refererclickurlObject



116
117
118
# File 'lib/boss.rb', line 116

def refererclickurl
  @result['refererclickurl']
end

#refererurlObject



120
121
122
# File 'lib/boss.rb', line 120

def refererurl
  @result['refererurl']
end

#sizeObject



124
125
126
# File 'lib/boss.rb', line 124

def size
  @result['size'].to_i
end

#thumbnail_heightObject



128
129
130
# File 'lib/boss.rb', line 128

def thumbnail_height
  @result['thumbnail_height'].to_i
end

#thumbnail_urlObject



132
133
134
# File 'lib/boss.rb', line 132

def thumbnail_url
  @result['thumbnail_url']
end

#thumbnail_widthObject



136
137
138
# File 'lib/boss.rb', line 136

def thumbnail_width
  @result['thumbnail_width'].to_i
end

#titleObject



140
141
142
# File 'lib/boss.rb', line 140

def title
  @result['title']
end

#urlObject



144
145
146
# File 'lib/boss.rb', line 144

def url
  @result['url']
end

#widthObject



148
149
150
# File 'lib/boss.rb', line 148

def width
  @result['width'].to_i
end