Class: MLS::PDF
Defined Under Namespace
Classes: Parser
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
#==, #create!, inherited, #initialize, #new_record?, #persisted?, #properties, #properties_excluded_from_comparison, #properties_for_comparison, #save, #save!, #set_default_values, #to_hash, #to_key, #update!, #update_attributes
Constructor Details
This class inherits a constructor from MLS::Resource
Instance Method Details
#url(style = '700x467#', protocol = 'http') ⇒ Object
8 9 10 |
# File 'lib/mls/models/pdf.rb', line 8 def url(style='700x467#', protocol='http') "#{protocol}://#{MLS.image_host}/#{avatar_digest}.jpg?s=#{URI.escape(size)}" end |