Class: PGit::Project::Application
- Inherits:
-
Object
- Object
- PGit::Project::Application
- Extended by:
- Forwardable
- Defined in:
- lib/pgit/project/application.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(global_opts, opts, args) ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize(global_opts, opts, args) ⇒ Application
Returns a new instance of Application.
11 12 13 14 15 16 17 18 |
# File 'lib/pgit/project/application.rb', line 11 def initialize(global_opts, opts, args) @config = PGit::Configuration.new @project = PGit::Project.new(@config) do |p| p.path = opts["path"] p.api_token = opts["api_token"] p.id = opts["id"] end end |
Instance Attribute Details
#project ⇒ Object (readonly)
Returns the value of attribute project.
9 10 11 |
# File 'lib/pgit/project/application.rb', line 9 def project @project end |