Class: BandCampBX::Net
- Inherits:
-
Object
- Object
- BandCampBX::Net
- Defined in:
- lib/bandcampbx/net.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Net
constructor
A new instance of Net.
- #key ⇒ Object
- #post(endpoint, options = {}) ⇒ Object
- #secret ⇒ Object
Constructor Details
#initialize(client) ⇒ Net
Returns a new instance of Net.
7 8 9 |
# File 'lib/bandcampbx/net.rb', line 7 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/bandcampbx/net.rb', line 5 def client @client end |
Instance Method Details
#key ⇒ Object
15 16 17 |
# File 'lib/bandcampbx/net.rb', line 15 def key client.key end |
#post(endpoint, options = {}) ⇒ Object
19 20 21 22 |
# File 'lib/bandcampbx/net.rb', line 19 def post(endpoint, ={}) raw_post(endpoint, ) # map_response(raw_post(endpoint, options)) end |
#secret ⇒ Object
11 12 13 |
# File 'lib/bandcampbx/net.rb', line 11 def secret client.secret end |