class BrickFTP::RESTfulAPI::GetBehavior
Show a behavior
@see developers.files.com/#show-a-behavior Show a behavior
Public Instance Methods
call(id)
click to toggle source
Returns a single behavior.
@param [Integer] id Globally unique identifier of each behavior. @return [BrickFTP::Types::Behavior, nil] found Behavior or nil
# File lib/brick_ftp/restful_api/get_behavior.rb, line 18 def call(id) res = client.get("/api/rest/v1/behaviors/#{id}.json") return nil if !res || res.empty? BrickFTP::Types::Behavior.new(**res.symbolize_keys) end