Class: Poisol::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/poisol/stub/stub_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



20
21
22
# File 'lib/poisol/stub/stub_builder.rb', line 20

def body
  @body
end

#pathObject

Returns the value of attribute path.



20
21
22
# File 'lib/poisol/stub/stub_builder.rb', line 20

def path
  @path
end

#queryObject

Returns the value of attribute query.



20
21
22
# File 'lib/poisol/stub/stub_builder.rb', line 20

def query
  @query
end

#typeObject

Returns the value of attribute type.



20
21
22
# File 'lib/poisol/stub/stub_builder.rb', line 20

def type
  @type
end

#urlObject

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_sObject



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