class Openlive::MasterBuilder
Public Class Methods
all()
click to toggle source
Fetch and return a list of all master builder units
@return [Array<MasterBuilder>] @raise [APIError] Will raise an error on unsuccessful response
# File lib/openlive/master_builder.rb, line 21 def all response = Request.get("masterbuilders") handle_response(response, error_class: Openlive::APIError) do |response| response.body['data'].map do |mb| new(mb, response: response) end end end
find(id)
click to toggle source
Find and return a masterbuilder record
@param id [String] @return [MasterBuilder] @raise [APIError] Will raise an error on unsuccessful response
# File lib/openlive/master_builder.rb, line 9 def find(id) response = Request.get("masterbuilders/#{id}") handle_response(response, error_class: APIError) do |response| new(response.body, response: response) end end