lib/halo-api/modules/halo5/metadata.rb in halo-api-0.4.3 vs lib/halo-api/modules/halo5/metadata.rb in halo-api-1.0.0

- old
+ new

@@ -1,9 +1,10 @@ +# frozen_string_literal: true + module Halo module Halo5 class Metadata < APIResponse - def initialize(options = {}) @endpoint = '/metadata/h5/metadata' super(options) end @@ -14,10 +15,14 @@ def commendations(options = {}) get_data("#{@endpoint}/commendations", options) end + def company_commendations(options = {}) + get_data("#{@endpoint}/company-commendations", options) + end + def csr_designations(options = {}) get_data("#{@endpoint}/csr-designations", options) end def enemies(options = {}) @@ -50,12 +55,12 @@ def medals(options = {}) get_data("#{@endpoint}/medals", options) end - def playlist(options = {}) - get_data("#{@endpoint}/playlist", options) + def playlists(options = {}) + get_data("#{@endpoint}/playlists", options) end def requisition(id, options = {}) get_data("#{@endpoint}/requisitions/#{id}", options) end @@ -85,9 +90,8 @@ end def weapons(options = {}) get_data("#{@endpoint}/weapons", options) end - end end end