Class: ODDB::View::Hospitals::VCard

Inherits:
VCard show all
Defined in:
src/view/hospitals/vcard.rb

Instance Method Summary (collapse)

Methods inherited from VCard

#addr_str, #addresses, #email, #get_fons, #get_value, #http_headers, #name, #prepare, #title, #to_html

Methods inherited from HtmlGrid::Component

#additional_javascripts, #dynamic_html

Instance Method Details

- (Object) get_filename



14
15
16
17
# File 'src/view/hospitals/vcard.rb', line 14

def get_filename
  filename = @model.name.gsub(/\s/u, '_').to_s +
    "_" + @model.ean13.gsub(/\s/u, '_').to_s + ".vcf"
end

- (Object) init



11
12
13
# File 'src/view/hospitals/vcard.rb', line 11

def init
  @content = [:name, :addresses]
end