Class: NationBuilder::RemoteController

Inherits:
Object
  • Object
show all
Defined in:
lib/nation_builder/remote_controller.rb

Direct Known Subclasses

People, Tags

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ RemoteController

Returns a new instance of RemoteController.



5
6
7
# File 'lib/nation_builder/remote_controller.rb', line 5

def initialize(client)
  self.client = client
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



3
4
5
# File 'lib/nation_builder/remote_controller.rb', line 3

def client
  @client
end

Instance Method Details

#base_pathObject



17
18
19
# File 'lib/nation_builder/remote_controller.rb', line 17

def base_path
  base_uri + controller_name
end

#base_uriObject



9
10
11
# File 'lib/nation_builder/remote_controller.rb', line 9

def base_uri
  '/api/v1/'
end

#controller_nameObject



13
14
15
# File 'lib/nation_builder/remote_controller.rb', line 13

def controller_name
  raise 'implement me'
end