Class: SimpleVpim

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s) ⇒ SimpleVpim

Returns a new instance of SimpleVpim.



14
15
16
17
18
19
20
21
22
23
# File 'lib/simplevpim.rb', line 14

def initialize(s)

  h = SimpleConfig.new(s).to_h

  if h[:name] then
    @to_vcard = make_vcard h
    @to_xml = vcard_xml h
  end

end

Instance Attribute Details

#to_vcardObject (readonly) Also known as: to_vcf

Returns the value of attribute to_vcard.



12
13
14
# File 'lib/simplevpim.rb', line 12

def to_vcard
  @to_vcard
end

#to_xmlObject (readonly)

Returns the value of attribute to_xml.



12
13
14
# File 'lib/simplevpim.rb', line 12

def to_xml
  @to_xml
end