Module: Actions::Katello::JailConcern::Organization

Included in:
ContentView::Promote, ContentView::Publish, Repository::Sync
Defined in:
app/lib/actions/katello/jail_concern/organization.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



17
18
19
20
21
22
23
24
25
26
# File 'app/lib/actions/katello/jail_concern/organization.rb', line 17

def self.included(base)
  super
  base.instance_eval do
    apipie :class do
      property :organization_id, Integer, desc: 'Returns the id of the organization'
      property :organization_name, String, desc: 'Returns the name of the organization'
      property :organization_label, String, desc: 'Returns the label of the organization'
    end
  end
end

Instance Method Details

#organization_idObject



5
6
7
# File 'app/lib/actions/katello/jail_concern/organization.rb', line 5

def organization_id
  input['organization']['id']
end

#organization_labelObject



13
14
15
# File 'app/lib/actions/katello/jail_concern/organization.rb', line 13

def organization_label
  input['organization']['label']
end

#organization_nameObject



9
10
11
# File 'app/lib/actions/katello/jail_concern/organization.rb', line 9

def organization_name
  input['organization']['name']
end