class Dirble::PrimaryCategory

Public Class Methods

all() click to toggle source
# File lib/dirble/primary_category.rb, line 4
def self.all
  Dirble::Category.primary
end

Public Instance Methods

children() click to toggle source
# File lib/dirble/primary_category.rb, line 8
def children
  self.class.call_api_with_results(
    request_type: :get,
    query: "childCategories/apikey/{{api_key}}/primaryid/#{id}",
    factory_klass: Dirble::Category
  )
end
primary() click to toggle source
# File lib/dirble/primary_category.rb, line 16
def primary
  true
end