Class: Gip::Remote

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, url, path) ⇒ Remote

Returns a new instance of Remote.



184
185
186
# File 'lib/gip.rb', line 184

def initialize(name, url, path)
  @name, @url, @path = name, url, path
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



182
183
184
# File 'lib/gip.rb', line 182

def name
  @name
end

#pathObject

Returns the value of attribute path.



182
183
184
# File 'lib/gip.rb', line 182

def path
  @path
end

#urlObject

Returns the value of attribute url.



182
183
184
# File 'lib/gip.rb', line 182

def url
  @url
end

Instance Method Details

#to_aObject



188
189
190
# File 'lib/gip.rb', line 188

def to_a
  [@name, @url, @path]
end