Class: FederalRegister::Topic

Inherits:
Base show all
Defined in:
lib/federal_register/topic.rb

Constant Summary

Constants inherited from Base

Base::INTEGER_CLASS

Instance Attribute Summary

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods inherited from Base

add_attribute, #fetch_full, #full?, #initialize, override_base_uri

Methods inherited from Client

get

Constructor Details

This class inherits a constructor from FederalRegister::Base

Class Method Details

.suggestions(args = {}) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/federal_register/topic.rb', line 6

def self.suggestions(args={})
  response = get("/topics/suggestions", query: args).parsed_response

  response.map do |hsh|
    new(hsh, :full => true)
  end
end