Class: Presenters::AnsibleRolePresenter

Inherits:
Object
  • Object
show all
Defined in:
app/graphql/presenters/ansible_role_presenter.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ansible_role, inherited) ⇒ AnsibleRolePresenter

Returns a new instance of AnsibleRolePresenter.



11
12
13
14
# File 'app/graphql/presenters/ansible_role_presenter.rb', line 11

def initialize(ansible_role, inherited)
  @ansible_role = ansible_role
  @inherited = inherited
end

Instance Attribute Details

#ansible_roleObject (readonly)

Returns the value of attribute ansible_role.



3
4
5
# File 'app/graphql/presenters/ansible_role_presenter.rb', line 3

def ansible_role
  @ansible_role
end

#inheritedObject (readonly)

Returns the value of attribute inherited.



3
4
5
# File 'app/graphql/presenters/ansible_role_presenter.rb', line 3

def inherited
  @inherited
end

Class Method Details

.graphql_typeObject



7
8
9
# File 'app/graphql/presenters/ansible_role_presenter.rb', line 7

def self.graphql_type
  'Types::InheritedAnsibleRole'
end