Class: Locomotive::Coal::Resources::CurrentSite
- Inherits:
-
Struct
- Object
- Struct
- Locomotive::Coal::Resources::CurrentSite
- Defined in:
- lib/locomotive/coal/resources/current_site.rb
Instance Attribute Summary collapse
-
#credentials ⇒ Object
Returns the value of attribute credentials.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
Methods included from Locomotive::Coal::Resources::Concerns::Request
#delete, #do_request, #post, #put, #without_authentication
Instance Attribute Details
#credentials ⇒ Object
Returns the value of attribute credentials
4 5 6 |
# File 'lib/locomotive/coal/resources/current_site.rb', line 4 def credentials @credentials end |
#uri ⇒ Object
Returns the value of attribute uri
4 5 6 |
# File 'lib/locomotive/coal/resources/current_site.rb', line 4 def uri @uri end |
Instance Method Details
#destroy ⇒ Object
17 18 19 20 |
# File 'lib/locomotive/coal/resources/current_site.rb', line 17 def destroy data = delete('current_site') Resource.new(data) end |