Class: Amara::Path

Inherits:
API
  • Object
show all
Defined in:
lib/amara/path.rb

Constant Summary

Constants included from Connection

Connection::ALLOWED_OPTIONS

Instance Attribute Summary

Attributes inherited from API

#current_options

Instance Method Summary collapse

Methods inherited from API

#apply_options, #args_to_options, #check_for_error, #create, #create!, #delete, #delete!, #force_raise_errors, #get, #get!, #initialize, #list, #list!, #paginate, #request, #update, #update!

Methods included from Connection

#connection, #merge_default_options

Constructor Details

This class inherits a constructor from Amara::API

Instance Method Details

#base_pathObject



5
6
7
8
9
10
11
12
# File 'lib/amara/path.rb', line 5

def base_path
  path = self.current_options[:path]
  if path.kind_of? Array
    path.join('/')
  else
    path
  end
end