Class: ManageIQ::API::Client::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/manageiq/api/client/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hrefObject (readonly)

Returns the value of attribute href.



7
8
9
# File 'lib/manageiq/api/client/action.rb', line 7

def href
  @href
end

#methodObject (readonly)

Returns the value of attribute method.



6
7
8
# File 'lib/manageiq/api/client/action.rb', line 6

def method
  @method
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/manageiq/api/client/action.rb', line 5

def name
  @name
end