Class: Slash::SimpleResource
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
Attributes inherited from Resource
#connection, #headers, #params, #password, #proxy, #timeout, #uri, #user
Instance Method Summary collapse
-
#initialize(uri, options = {}) ⇒ SimpleResource
constructor
A new instance of SimpleResource.
Methods inherited from Resource
#[], #delete, #get, #head, new!, #post, #put, #request, #slash, #user_agent, #user_agent=
Constructor Details
#initialize(uri, options = {}) ⇒ SimpleResource
Returns a new instance of SimpleResource.
172 173 174 175 |
# File 'lib/slash/resource.rb', line 172 def initialize(uri, = {}) super([:connection] || create_connection, uri, ) self.format = [:format] end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
170 171 172 |
# File 'lib/slash/resource.rb', line 170 def format @format end |