Class: NationBuilder::Tags

Inherits:
RemoteController show all
Includes:
Actions::List
Defined in:
lib/nation_builder/tags.rb

Instance Attribute Summary

Attributes inherited from RemoteController

#client

Instance Method Summary collapse

Methods included from Actions::List

#list

Methods inherited from RemoteController

#base_path, #base_uri, #initialize

Constructor Details

This class inherits a constructor from NationBuilder::RemoteController

Instance Method Details

#controller_nameObject



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