Class: Yoda::Store::Objects::ProjectStatus
- Inherits:
-
Object
- Object
- Yoda::Store::Objects::ProjectStatus
show all
- Includes:
- Serializable
- Defined in:
- lib/yoda/store/objects/project_status.rb
Defined Under Namespace
Classes: BundleStatus, GemStatus, StdStatus
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
#derive, included, #to_json
Constructor Details
#initialize(bundle:, version:) ⇒ ProjectStatus
Returns a new instance of ProjectStatus.
21
22
23
24
|
# File 'lib/yoda/store/objects/project_status.rb', line 21
def initialize(bundle:, version:)
@bundle = bundle
@version = version
end
|
Instance Attribute Details
11
12
13
|
# File 'lib/yoda/store/objects/project_status.rb', line 11
def bundle
@bundle
end
|
#version ⇒ Integer
8
9
10
|
# File 'lib/yoda/store/objects/project_status.rb', line 8
def version
@version
end
|
Instance Method Details
#to_h ⇒ Object
26
27
28
|
# File 'lib/yoda/store/objects/project_status.rb', line 26
def to_h
{ bundle: bundle, version: version }
end
|