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.



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

def initialize(s)

  h = SimpleConfig.new(s).to_h

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

end

Instance Attribute Details

#to_vcardObject (readonly)

Returns the value of attribute to_vcard.



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

def to_vcard
  @to_vcard
end