Module: Actions::Katello::JailConcern::ContentView
- Included in:
- ContentView::Promote, ContentView::Publish
- Defined in:
- app/lib/actions/katello/jail_concern/content_view.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/content_view.rb', line 17 def self.included(base) super base.instance_eval do apipie :class do property :content_view_id, Integer, desc: 'Returns the id of the content view' property :content_view_name, String, desc: 'Returns the name of the content view' property :content_view_label, String, desc: 'Returns the label of the content view' end end end |
Instance Method Details
#content_view_id ⇒ Object
5 6 7 |
# File 'app/lib/actions/katello/jail_concern/content_view.rb', line 5 def content_view_id input['content_view']['id'] end |
#content_view_label ⇒ Object
13 14 15 |
# File 'app/lib/actions/katello/jail_concern/content_view.rb', line 13 def content_view_label input['content_view']['label'] end |
#content_view_name ⇒ Object
9 10 11 |
# File 'app/lib/actions/katello/jail_concern/content_view.rb', line 9 def content_view_name input['content_view']['name'] end |