class RubyUber::V1::Base
Attributes
client[RW]
Public Class Methods
new(options)
click to toggle source
# File lib/ruby_uber/v1/base.rb, line 7 def initialize(options) @client = options[:client] end
Public Instance Methods
get(query = {})
click to toggle source
# File lib/ruby_uber/v1/base.rb, line 11 def get(query = {}) body = Utility.symbolize_keys(client.get(path, query).body) root_key ? body.fetch(root_key) { body } : body end
path()
click to toggle source
# File lib/ruby_uber/v1/base.rb, line 16 def path "" end
root_key()
click to toggle source
# File lib/ruby_uber/v1/base.rb, line 20 def root_key end