Class: Asgit::Project
- Inherits:
-
Object
- Object
- Asgit::Project
- Defined in:
- lib/asgit/project.rb
Defined Under Namespace
Classes: Details
Instance Method Summary collapse
- #details ⇒ Object
-
#initialize(project_details = {}) ⇒ Project
constructor
A new instance of Project.
- #service ⇒ Object
- #urls ⇒ Object
Constructor Details
#initialize(project_details = {}) ⇒ Project
Returns a new instance of Project.
6 7 8 9 10 11 12 13 14 |
# File 'lib/asgit/project.rb', line 6 def initialize project_details={} project_details.each do |k,v| begin details.public_send( :"#{k}=", v ) rescue NoMethodError => e raise ArgumentError, "unknown keyword: #{e.name.to_s.chomp('=')}" end end end |