Class: MotionOcean::Resource::Action

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/motion_ocean/resource/action.rb

Constant Summary

Constants included from Base

Base::PER_PAGE

Instance Attribute Summary

Attributes included from Base

#api_client

Instance Method Summary collapse

Methods included from Base

#initialize

Instance Method Details

#all(&block) ⇒ Object



6
7
8
# File 'lib/motion_ocean/resource/action.rb', line 6

def all(&block)
  get('actions', &block)
end

#show(action_id, &block) ⇒ Object



10
11
12
# File 'lib/motion_ocean/resource/action.rb', line 10

def show(action_id, &block)
  get("actions/#{action_id}", &block)
end