Sha256: 9faa58f9e7148e6d76efd78824796f137aa7c45f54798fdb92f8f7d116e3bb00

Contents?: true

Size: 308 Bytes

Versions: 5

Compression:

Stored size: 308 Bytes

Contents

module NationBuilder
  class RemoteController
    attr_accessor :client

    def initialize(client)
      self.client = client
    end

    def base_uri
      '/api/v1/'
    end

    def controller_name
      raise 'implement me'
    end

    def base_path
      base_uri + controller_name
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nation_builder-0.0.17 lib/nation_builder/remote_controller.rb
nation_builder-0.0.16 lib/nation_builder/remote_controller.rb
nation_builder-0.0.15 lib/nation_builder/remote_controller.rb
nation_builder-0.0.14 lib/nation_builder/remote_controller.rb
nation_builder-0.0.13 lib/nation_builder/remote_controller.rb