module StrawberryAPI::Client::StatusFlags
Public Instance Methods
status_flag(id:)
click to toggle source
Fetches a status flag
@param [Integer] id Id of the status flag to retrieve
@return [StrawberryAPI::StatusFlag] The fetched status flag
# File lib/strawberry_api/client/status_flags.rb, line 20 def status_flag(id:) data = get("/status_flags/#{id}").parse['status_flag'] data.nil? ? nil : StatusFlag.new(data) end
status_flags()
click to toggle source
Fetches all status flags
@return [Array<StrawberryAPI::StatusFlag>] A list of status flags
# File lib/strawberry_api/client/status_flags.rb, line 10 def status_flags get("/status_flags").parse['array'] end