Class: BrickFTP::RESTfulAPI::ListBehaviors
- Inherits:
-
Object
- Object
- BrickFTP::RESTfulAPI::ListBehaviors
- Includes:
- Command
- Defined in:
- lib/brick_ftp/restful_api/list_behaviors.rb
Overview
List all behaviors
Instance Method Summary collapse
-
#call ⇒ Array<BrickFTP::Types::Behavior>
Returns a list of all behaviors on the current site.
Methods included from Command
Instance Method Details
#call ⇒ Array<BrickFTP::Types::Behavior>
Returns a list of all behaviors on the current site.
17 18 19 20 21 |
# File 'lib/brick_ftp/restful_api/list_behaviors.rb', line 17 def call res = client.get('/api/rest/v1/behaviors.json') res.map { |i| BrickFTP::Types::Behavior.new(**i.symbolize_keys) } end |