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