class BrickFTP::RESTfulAPI::ListBehaviors
List all behaviors
@see developers.files.com/#list-all-behaviors List all behaviors
Public Instance Methods
call()
click to toggle source
Returns a list of all behaviors on the current site.
@return [Array<BrickFTP::Types::Behavior>] Behaviors
# 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