Class: Proz::DeleteWiwoReply
- Inherits:
-
Object
- Object
- Proz::DeleteWiwoReply
- Includes:
- HTTParty
- Defined in:
- lib/proz/delete_wiwo_reply.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#wiwo_id ⇒ Object
readonly
Returns the value of attribute wiwo_id.
-
#wiwo_reply_id ⇒ Object
readonly
Returns the value of attribute wiwo_reply_id.
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(token:, wiwo_id:, wiwo_reply_id:) ⇒ DeleteWiwoReply
constructor
A new instance of DeleteWiwoReply.
Constructor Details
#initialize(token:, wiwo_id:, wiwo_reply_id:) ⇒ DeleteWiwoReply
Returns a new instance of DeleteWiwoReply.
8 9 10 11 12 |
# File 'lib/proz/delete_wiwo_reply.rb', line 8 def initialize(token:, wiwo_id:, wiwo_reply_id:) @token = token @wiwo_id = wiwo_id @wiwo_reply_id = wiwo_reply_id end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
7 8 9 |
# File 'lib/proz/delete_wiwo_reply.rb', line 7 def token @token end |
#wiwo_id ⇒ Object (readonly)
Returns the value of attribute wiwo_id.
7 8 9 |
# File 'lib/proz/delete_wiwo_reply.rb', line 7 def wiwo_id @wiwo_id end |
#wiwo_reply_id ⇒ Object (readonly)
Returns the value of attribute wiwo_reply_id.
7 8 9 |
# File 'lib/proz/delete_wiwo_reply.rb', line 7 def wiwo_reply_id @wiwo_reply_id end |
Instance Method Details
#delete ⇒ Object
14 15 16 |
# File 'lib/proz/delete_wiwo_reply.rb', line 14 def delete self.class.delete("/wiwo/#{wiwo_id}/replies/#{wiwo_reply_id}", headers: { 'Authorization' => "Bearer #{token}" } ) end |