Class: NationBuilder::Tags
- Inherits:
-
RemoteController
- Object
- RemoteController
- NationBuilder::Tags
- Includes:
- Actions::List
- Defined in:
- lib/nation_builder/tags.rb
Instance Attribute Summary
Attributes inherited from RemoteController
Instance Method Summary collapse
Methods included from Actions::List
Methods inherited from RemoteController
#base_path, #base_uri, #initialize
Constructor Details
This class inherits a constructor from NationBuilder::RemoteController
Instance Method Details
#controller_name ⇒ Object
5 6 7 |
# File 'lib/nation_builder/tags.rb', line 5 def controller_name 'tags' end |
#people(tag) ⇒ Object
9 10 11 |
# File 'lib/nation_builder/tags.rb', line 9 def people(tag) JSON.parse(client.get("#{base_path}/#{CGI.escape(tag.to_s)}").response.env[:body]) end |