Module: Pulp::Common::Lifecycle

Included in:
Pulp::Connection::Base
Defined in:
lib/pulp/common/lifecycle.rb,
lib/pulp/common/lifecycle/get.rb,
lib/pulp/common/lifecycle/create.rb,
lib/pulp/common/lifecycle/delete.rb,
lib/pulp/common/lifecycle/update.rb

Defined Under Namespace

Modules: ClassMethods, Create, Delete, Get, Update

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/pulp/common/lifecycle.rb', line 4

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#fieldsObject



7
8
9
# File 'lib/pulp/common/lifecycle.rb', line 7

def fields
  @fields ||= {}
end

#locked_fieldsObject



21
22
23
# File 'lib/pulp/common/lifecycle.rb', line 21

def locked_fields
  self.class.locked_fields
end

#record_fieldsObject



14
15
16
# File 'lib/pulp/common/lifecycle.rb', line 14

def record_fields
  self.class.record_fields
end

#special_fieldsObject



17
18
19
# File 'lib/pulp/common/lifecycle.rb', line 17

def special_fields
  self.class.special_fields
end

#user_fieldsObject



11
12
13
# File 'lib/pulp/common/lifecycle.rb', line 11

def user_fields
  @user_fields ||= {}
end