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.
20 21 22 |
# File 'lib/poisol/stub/stub_builder.rb', line 20 def body @body end |
#path ⇒ Object
Returns the value of attribute path.
20 21 22 |
# File 'lib/poisol/stub/stub_builder.rb', line 20 def path @path end |
#query ⇒ Object
Returns the value of attribute query.
20 21 22 |
# File 'lib/poisol/stub/stub_builder.rb', line 20 def query @query end |
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/poisol/stub/stub_builder.rb', line 20 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
20 21 22 |
# File 'lib/poisol/stub/stub_builder.rb', line 20 def url @url end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/poisol/stub/stub_builder.rb', line 22 def to_s "#{self.type} #{self.url} #{"Query:#{self.query}" if self.query.present?} #{"\nBody: #{self.body}" if self.body.present?} " end |