Class: InchCI::Store::CreateCodeObject

Inherits:
Object
  • Object
show all
Defined in:
lib/inch_ci/store.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(revision, attributes) ⇒ CreateCodeObject

Returns a new instance of CreateCodeObject.


179
180
181
182
# File 'lib/inch_ci/store.rb', line 179

def initialize(revision, attributes)
  @code_object = find_or_create_code_object(revision, attributes)
  create_code_object_reference(revision)
end

Instance Attribute Details

#code_objectObject (readonly)

Returns the value of attribute code_object


173
174
175
# File 'lib/inch_ci/store.rb', line 173

def code_object
  @code_object
end

Class Method Details

.call(*args) ⇒ Object


175
176
177
# File 'lib/inch_ci/store.rb', line 175

def self.call(*args)
  new(*args).code_object
end