Class: DPL::Provider::Bintray::RequestDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/dpl/provider/bintray.rb

Overview

Used to return the path and body of REST requests sent to Bintray. Used for testing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, body) ⇒ RequestDetails

Returns a new instance of RequestDetails.



496
497
498
499
# File 'lib/dpl/provider/bintray.rb', line 496

def initialize(path, body)
  @path = path
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



502
503
504
# File 'lib/dpl/provider/bintray.rb', line 502

def body
  @body
end

#pathObject (readonly)

Returns the value of attribute path.



501
502
503
# File 'lib/dpl/provider/bintray.rb', line 501

def path
  @path
end