Class: Subtrac::Client
- Inherits:
-
Object
- Object
- Subtrac::Client
- Defined in:
- lib/subtrac/client.rb
Instance Attribute Summary collapse
-
#display_name ⇒ Object
readonly
Returns the value of attribute display_name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(name) ⇒ Client
Returns a new instance of Client.
4 5 6 7 8 |
# File 'lib/subtrac/client.rb', line 4 def initialize(name) puts "Client created" @display_name = name.gsub(/^[a-z]|\s+[a-z]/) { |a| a.upcase } @path = name.downcase end |
Instance Attribute Details
#display_name ⇒ Object (readonly)
Returns the value of attribute display_name.
3 4 5 |
# File 'lib/subtrac/client.rb', line 3 def display_name @display_name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/subtrac/client.rb', line 3 def path @path end |