Class: Quandl::Sandbox::Repository
- Inherits:
-
Object
- Object
- Quandl::Sandbox::Repository
show all
- Includes:
- Attributes
- Defined in:
- lib/quandl/sandbox/repository.rb
Defined Under Namespace
Classes: Script
Instance Method Summary
collapse
Methods included from Attributes
#attributes, #attributes=, #initialize
Instance Method Details
#dirname ⇒ Object
20
21
22
|
# File 'lib/quandl/sandbox/repository.rb', line 20
def dirname
@dirname ||= git.to_s.parameterize
end
|
#full_path ⇒ Object
16
17
18
|
# File 'lib/quandl/sandbox/repository.rb', line 16
def full_path
@full_path ||= File.join( '/home/ubuntu', dirname )
end
|
#git=(value) ⇒ Object
7
8
9
10
|
# File 'lib/quandl/sandbox/repository.rb', line 7
def git=(value)
@full_path = nil
@git = URI.escape( value.to_s )
end
|
#ref=(value) ⇒ Object
12
13
14
|
# File 'lib/quandl/sandbox/repository.rb', line 12
def ref=(value)
@ref = URI.escape( value.to_s )
end
|
#script ⇒ Object
24
25
26
|
# File 'lib/quandl/sandbox/repository.rb', line 24
def script
@script ||= Script.new(self)
end
|