Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flushing things out, it's still nonfunctional
- Loading branch information
Showing
9 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
module FluidDB | ||
class Base | ||
|
||
class << self | ||
|
||
def query() | ||
|
||
end | ||
|
||
def get(obj) | ||
RestClient.get(obj.url, obj.params, standard_headers) | ||
end | ||
|
||
def head(obj) | ||
RestClient.head(obj.url, standard_headers) | ||
end | ||
|
||
def put | ||
RestClient.put(obj.url, obj.params, standard_headers) | ||
end | ||
|
||
def post | ||
RestClient.post(obj.url, obj.params, standard_headers) | ||
end | ||
|
||
def delete | ||
RestClient.delete(obj.url, obj.params, standard_headers) | ||
end | ||
|
||
def base_url | ||
"http://#{username}:#{password}@#{API_DOMAIN}/" | ||
end | ||
|
||
def standard_headers | ||
{:content_type => 'application/json'} | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module FluidDB | ||
class FluidObject < Base | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module FluidDB | ||
class Namespace < FluidObject | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module FluidDB | ||
class Permission < FluidObject | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module FluidDB | ||
class Policy < FluidObject | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module FluidDB | ||
class Tag < FluidObject | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module FluidDB | ||
class User < FluidObject | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
require 'rubygems' | ||
require 'fluiddb' | ||
require 'test/unit' | ||
|