Class: ActionTexter::Request
- Inherits:
-
Object
- Object
- ActionTexter::Request
- Defined in:
- lib/action_texter/request.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(body) ⇒ Request
constructor
A new instance of Request.
- #perform ⇒ Object
- #valid? ⇒ Boolean
Constructor Details
#initialize(body) ⇒ Request
Returns a new instance of Request.
10 11 12 |
# File 'lib/action_texter/request.rb', line 10 def initialize(body) @body = body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
6 7 8 |
# File 'lib/action_texter/request.rb', line 6 def body @body end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/action_texter/request.rb', line 8 def response @response end |
Instance Method Details
#perform ⇒ Object
14 15 16 |
# File 'lib/action_texter/request.rb', line 14 def perform fail NotImplementedError if valid? end |
#valid? ⇒ Boolean
18 19 20 |
# File 'lib/action_texter/request.rb', line 18 def valid? ActionTexter::Validator::Request.new end |