Class: Subtrac::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/subtrac/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (readonly)

Returns the value of attribute display_name.



3
4
5
# File 'lib/subtrac/client.rb', line 3

def display_name
  @display_name
end

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/subtrac/client.rb', line 3

def path
  @path
end