Module: Noteshred
- Defined in:
- lib/noteshred.rb,
lib/noteshred/api.rb,
lib/noteshred/note.rb,
lib/noteshred/tools.rb,
lib/noteshred/crypto.rb,
lib/noteshred/request.rb,
lib/noteshred/version.rb
Defined Under Namespace
Modules: API, Crypto, Tools
Classes: Note, Request
Constant Summary
collapse
- VERSION =
"1.0.1"
Class Method Summary
collapse
Class Method Details
.api_key ⇒ Object
18
19
20
|
# File 'lib/noteshred.rb', line 18
def self.api_key
@api_key
end
|
.api_key=(api_key) ⇒ Object
14
15
16
|
# File 'lib/noteshred.rb', line 14
def self.api_key=(api_key)
@api_key = api_key
end
|
.bundle ⇒ Object
30
31
32
|
# File 'lib/noteshred.rb', line 30
def self.bundle
Noteshred::API.get('/bundle')
end
|
.endpoint ⇒ Object
22
23
24
|
# File 'lib/noteshred.rb', line 22
def self.endpoint
"#{@protocol}://#{@hostname}/#{@api_ver}"
end
|
.url(rel) ⇒ Object
26
27
28
|
# File 'lib/noteshred.rb', line 26
def self.url(rel)
Noteshred.endpoint + rel
end
|