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