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