Class: SimpleVpim
- Inherits:
-
Object
- Object
- SimpleVpim
- Defined in:
- lib/simplevpim.rb
Instance Attribute Summary collapse
-
#to_vcard ⇒ Object
(also: #to_vcf)
readonly
Returns the value of attribute to_vcard.
-
#to_xml ⇒ Object
readonly
Returns the value of attribute to_xml.
Instance Method Summary collapse
-
#initialize(s) ⇒ SimpleVpim
constructor
A new instance of SimpleVpim.
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_vcard ⇒ Object (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_xml ⇒ Object (readonly)
Returns the value of attribute to_xml.
12 13 14 |
# File 'lib/simplevpim.rb', line 12 def to_xml @to_xml end |