Class: OpenBuildServiceAPI::Repository
- Inherits:
-
Object
- Object
- OpenBuildServiceAPI::Repository
- Defined in:
- lib/models/repository.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
- #architectures ⇒ Object
-
#initialize(params = {}) ⇒ Repository
constructor
A new instance of Repository.
- #paths ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ Repository
Returns a new instance of Repository.
5 6 7 8 9 10 11 |
# File 'lib/models/repository.rb', line 5 def initialize(params = {}) @name = params[:name] @paths = params[:paths] @architectures = params[:architectures] @project = params[:project] @connection = params[:connection] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/models/repository.rb', line 3 def name @name end |
#project ⇒ Object
Returns the value of attribute project.
3 4 5 |
# File 'lib/models/repository.rb', line 3 def project @project end |
Instance Method Details
#architectures ⇒ Object
21 22 23 |
# File 'lib/models/repository.rb', line 21 def architectures @architectures end |
#paths ⇒ Object
17 18 19 |
# File 'lib/models/repository.rb', line 17 def paths @paths end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/models/repository.rb', line 13 def to_s @name end |