Module: Vend::Paths
- Included in:
- RemoteResource
- Defined in:
- lib/vend/modules/paths.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
- #close_path ⇒ Object
- #destroy_path ⇒ Object
- #open_path ⇒ Object
-
#resource_path ⇒ Object
Instance Paths.
- #show_path ⇒ Object
- #update_path ⇒ Object
Class Method Details
.included(base) ⇒ Object
42 43 44 |
# File 'lib/vend/modules/paths.rb', line 42 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#close_path ⇒ Object
34 35 36 |
# File 'lib/vend/modules/paths.rb', line 34 def close_path [ self.class.collection_api_path, id, 'close' ].compact.join("/") end |
#destroy_path ⇒ Object
30 31 32 |
# File 'lib/vend/modules/paths.rb', line 30 def destroy_path [ self.class.collection_api_path, id ].compact.join("/") end |
#open_path ⇒ Object
38 39 40 |
# File 'lib/vend/modules/paths.rb', line 38 def open_path [ self.class.collection_api_path, id, 'open' ].compact.join("/") end |
#resource_path ⇒ Object
Instance Paths
18 19 20 |
# File 'lib/vend/modules/paths.rb', line 18 def resource_path [ self.class.resource_api_path, id ].compact.join("/") end |
#show_path ⇒ Object
22 23 24 |
# File 'lib/vend/modules/paths.rb', line 22 def show_path resource_path end |
#update_path ⇒ Object
26 27 28 |
# File 'lib/vend/modules/paths.rb', line 26 def update_path self.class.collection_path end |