Class: Amara::Path
Constant Summary
Constants included from Connection
Instance Attribute Summary
Attributes inherited from API
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_path ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/amara/path.rb', line 5 def base_path path = self.[:path] if path.kind_of? Array path.join('/') else path end end |