Class: Arbetsformedlingen::API::Values::CreateAdPage
- Inherits:
-
Object
- Object
- Arbetsformedlingen::API::Values::CreateAdPage
- Defined in:
- lib/arbetsformedlingen/api/values/create_ad_page.rb
Constant Summary collapse
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#request_body ⇒ Object
readonly
Returns the value of attribute request_body.
Instance Method Summary collapse
-
#initialize(httparty_response, _request_boby) ⇒ CreateAdPage
constructor
A new instance of CreateAdPage.
- #valid? ⇒ Boolean
Constructor Details
#initialize(httparty_response, _request_boby) ⇒ CreateAdPage
Returns a new instance of CreateAdPage.
11 12 13 14 15 16 17 |
# File 'lib/arbetsformedlingen/api/values/create_ad_page.rb', line 11 def initialize(httparty_response, _request_boby) @code = httparty_response.code @body = httparty_response.body @request_body = request_body @valid = @code == 202 @messages = (httparty_response.to_a) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
9 10 11 |
# File 'lib/arbetsformedlingen/api/values/create_ad_page.rb', line 9 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/arbetsformedlingen/api/values/create_ad_page.rb', line 9 def code @code end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
9 10 11 |
# File 'lib/arbetsformedlingen/api/values/create_ad_page.rb', line 9 def @messages end |
#request_body ⇒ Object (readonly)
Returns the value of attribute request_body.
9 10 11 |
# File 'lib/arbetsformedlingen/api/values/create_ad_page.rb', line 9 def request_body @request_body end |
Instance Method Details
#valid? ⇒ Boolean
19 20 21 |
# File 'lib/arbetsformedlingen/api/values/create_ad_page.rb', line 19 def valid? @valid end |