Class: AnsibleGalaxy::Me
- Inherits:
-
Object
- Object
- AnsibleGalaxy::Me
- Includes:
- Contracts
- Defined in:
- lib/ansible_galaxy/me.rb
Overview
Wraps /api/v1/me
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Me
constructor
A new instance of Me.
- #roles ⇒ Object
- #summary_fields ⇒ Object
- #username ⇒ Object
Constructor Details
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
8 9 10 |
# File 'lib/ansible_galaxy/me.rb', line 8 def raw @raw end |
Instance Method Details
#roles ⇒ Object
26 27 28 |
# File 'lib/ansible_galaxy/me.rb', line 26 def roles summary_fields['roles'] end |
#summary_fields ⇒ Object
21 22 23 |
# File 'lib/ansible_galaxy/me.rb', line 21 def summary_fields @raw['summary_fields'] end |
#username ⇒ Object
16 17 18 |
# File 'lib/ansible_galaxy/me.rb', line 16 def username @raw['username'] end |