Class: RubyClone::Profile

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_clone/profile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Profile

Returns a new instance of Profile.



83
84
85
# File 'lib/ruby_clone/profile.rb', line 83

def initialize(name)
  @name = name.to_s
end

Instance Attribute Details

#from_folderObject

Returns the value of attribute from_folder.



80
81
82
# File 'lib/ruby_clone/profile.rb', line 80

def from_folder
  @from_folder
end

#nameObject

Returns the value of attribute name.



79
80
81
# File 'lib/ruby_clone/profile.rb', line 79

def name
  @name
end

#to_folderObject

Returns the value of attribute to_folder.



81
82
83
# File 'lib/ruby_clone/profile.rb', line 81

def to_folder
  @to_folder
end

Instance Method Details

#to_sObject



87
88
89
# File 'lib/ruby_clone/profile.rb', line 87

def to_s
  @name
end