Class: SkypeHistoryImport::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/skype-history-import.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dateObject

Returns the value of attribute date.



61
62
63
# File 'lib/skype-history-import.rb', line 61

def date
  @date
end

#nickObject

Returns the value of attribute nick.



61
62
63
# File 'lib/skype-history-import.rb', line 61

def nick
  @nick
end

#textObject

Returns the value of attribute text.



61
62
63
# File 'lib/skype-history-import.rb', line 61

def text
  @text
end

Instance Method Details

#emailObject

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