Class: SkypeHistoryImport::Message
- Inherits:
-
Object
- Object
- SkypeHistoryImport::Message
- Defined in:
- lib/skype-history-import.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#nick ⇒ Object
Returns the value of attribute nick.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#email ⇒ Object
make email from nick, like [email protected].
- #email=(value) ⇒ Object
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
61 62 63 |
# File 'lib/skype-history-import.rb', line 61 def date @date end |
#nick ⇒ Object
Returns the value of attribute nick.
61 62 63 |
# File 'lib/skype-history-import.rb', line 61 def nick @nick end |
#text ⇒ Object
Returns the value of attribute text.
61 62 63 |
# File 'lib/skype-history-import.rb', line 61 def text @text end |
Instance Method Details
#email ⇒ Object
make email from nick, like [email protected]
64 65 66 67 68 69 70 |
# File 'lib/skype-history-import.rb', line 64 def email if @email.nil? @email = nick.to_url.gsub(/\W/,'') @email = "#{@email}@skype.com" end @email end |
#email=(value) ⇒ Object
72 73 74 |
# File 'lib/skype-history-import.rb', line 72 def email=(value) @email = value end |