Class: Checklister::Gitlab::ProjectDecorator
- Inherits:
-
Object
- Object
- Checklister::Gitlab::ProjectDecorator
- Defined in:
- lib/checklister/gitlab/project.rb
Instance Method Summary collapse
- #description ⇒ Object
- #id ⇒ Object
-
#initialize(object) ⇒ ProjectDecorator
constructor
A new instance of ProjectDecorator.
- #name ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize(object) ⇒ ProjectDecorator
Returns a new instance of ProjectDecorator.
4 5 6 |
# File 'lib/checklister/gitlab/project.rb', line 4 def initialize(object) @object = object end |
Instance Method Details
#description ⇒ Object
16 17 18 |
# File 'lib/checklister/gitlab/project.rb', line 16 def description @object.description end |
#id ⇒ Object
8 9 10 |
# File 'lib/checklister/gitlab/project.rb', line 8 def id @object.id end |
#name ⇒ Object
12 13 14 |
# File 'lib/checklister/gitlab/project.rb', line 12 def name @object.name_with_namespace end |
#to_hash ⇒ Object
20 21 22 |
# File 'lib/checklister/gitlab/project.rb', line 20 def to_hash { id: id, name: name, description: description } end |