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.
- #to_xcard ⇒ Object
Constructor Details
#initialize(s) ⇒ SimpleVpim
Returns a new instance of SimpleVpim.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/simplevpim.rb', line 15 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.
13 14 15 |
# File 'lib/simplevpim.rb', line 13 def to_vcard @to_vcard end |
#to_xml ⇒ Object (readonly)
Returns the value of attribute to_xml.
13 14 15 |
# File 'lib/simplevpim.rb', line 13 def to_xml @to_xml end |
Instance Method Details
#to_xcard ⇒ Object
28 29 30 |
# File 'lib/simplevpim.rb', line 28 def to_xcard() make_xcard @to_xml end |