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 = 'large', protocol = 'http') ⇒ Object
8 9 10 |
# File 'lib/mls/models/pdf.rb', line 8 def url(style='large', protocol='http') "#{protocol}://#{MLS.asset_host}/#{type}s/#{style}/#{@digest}.jpg" end |