Class: NationBuilder::RemoteController
- Inherits:
-
Object
- Object
- NationBuilder::RemoteController
- Defined in:
- lib/nation_builder/remote_controller.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
- #base_path ⇒ Object
- #base_uri ⇒ Object
- #controller_name ⇒ Object
-
#initialize(client) ⇒ RemoteController
constructor
A new instance of RemoteController.
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
#client ⇒ Object
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_path ⇒ Object
17 18 19 |
# File 'lib/nation_builder/remote_controller.rb', line 17 def base_path base_uri + controller_name end |
#base_uri ⇒ Object
9 10 11 |
# File 'lib/nation_builder/remote_controller.rb', line 9 def base_uri '/api/v1/' end |
#controller_name ⇒ Object
13 14 15 |
# File 'lib/nation_builder/remote_controller.rb', line 13 def controller_name raise 'implement me' end |