Class: Bloodbath::Adapters::Rest
- Inherits:
-
Object
- Object
- Bloodbath::Adapters::Rest
- Defined in:
- lib/bloodbath/event.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(method:, endpoint:, body: nil, config: Bloodbath.config) ⇒ Rest
constructor
A new instance of Rest.
- #perform ⇒ Object
Constructor Details
#initialize(method:, endpoint:, body: nil, config: Bloodbath.config) ⇒ Rest
Returns a new instance of Rest.
11 12 13 14 15 16 |
# File 'lib/bloodbath/event.rb', line 11 def initialize(method:, endpoint:, body: nil, config: Bloodbath.config) @method = method @endpoint = endpoint @body = body @config = config end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
9 10 11 |
# File 'lib/bloodbath/event.rb', line 9 def body @body end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/bloodbath/event.rb', line 9 def config @config end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
9 10 11 |
# File 'lib/bloodbath/event.rb', line 9 def endpoint @endpoint end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
9 10 11 |
# File 'lib/bloodbath/event.rb', line 9 def method @method end |
Instance Method Details
#perform ⇒ Object
18 19 20 21 |
# File 'lib/bloodbath/event.rb', line 18 def perform check_api_key response end |