Class: Poisol::Request
- Inherits:
-
Object
- Object
- Poisol::Request
- Defined in:
- lib/poisol/stub/stub_builder.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#path ⇒ Object
Returns the value of attribute path.
-
#query ⇒ Object
Returns the value of attribute query.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
24 25 26 |
# File 'lib/poisol/stub/stub_builder.rb', line 24 def body @body end |
#path ⇒ Object
Returns the value of attribute path.
24 25 26 |
# File 'lib/poisol/stub/stub_builder.rb', line 24 def path @path end |
#query ⇒ Object
Returns the value of attribute query.
24 25 26 |
# File 'lib/poisol/stub/stub_builder.rb', line 24 def query @query end |
#type ⇒ Object
Returns the value of attribute type.
24 25 26 |
# File 'lib/poisol/stub/stub_builder.rb', line 24 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
24 25 26 |
# File 'lib/poisol/stub/stub_builder.rb', line 24 def url @url end |
Instance Method Details
#to_s ⇒ Object
26 27 28 |
# File 'lib/poisol/stub/stub_builder.rb', line 26 def to_s "#{self.type} #{self.url} #{"Query:#{self.query}" if self.query.present?} #{"\nBody: #{self.body}" if self.body.present?} " end |