class Yoda::Store::Objects::ProjectStatus

Attributes

bundle[R]

@return [BundleStatus]

version[R]

@return [Integer]

Public Class Methods

initial_build(specs:) click to toggle source

@param specs [Array<Bundler::LazySpecification>] @return [BundleStatus]

# File lib/yoda/store/objects/project_status.rb, line 15
def self.initial_build(specs:)
  new(bundle: BundleStatus.initial_build(specs), version: Registry::REGISTRY_VERSION)
end
new(bundle:, version:) click to toggle source

@param bundle [BundleStatus] @param version [Integer] the version number of registry

# File lib/yoda/store/objects/project_status.rb, line 21
def initialize(bundle:, version:)
  @bundle = bundle
  @version = version
end

Public Instance Methods

to_h() click to toggle source
# File lib/yoda/store/objects/project_status.rb, line 26
def to_h
  { bundle: bundle, version: version }
end