Class: ManageIQ::API::Client::Action
- Inherits:
-
Object
- Object
- ManageIQ::API::Client::Action
- Defined in:
- lib/manageiq/api/client/action.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(action_hash) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(action_hash) ⇒ Action
Returns a new instance of Action.
9 10 11 |
# File 'lib/manageiq/api/client/action.rb', line 9 def initialize(action_hash) @name, @method, @href = action_hash.values_at("name", "method", "href") end |
Instance Attribute Details
#href ⇒ Object (readonly)
Returns the value of attribute href.
7 8 9 |
# File 'lib/manageiq/api/client/action.rb', line 7 def href @href end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
6 7 8 |
# File 'lib/manageiq/api/client/action.rb', line 6 def method @method end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/manageiq/api/client/action.rb', line 5 def name @name end |