Class: Proxybonanza::Responses::Base
- Inherits:
-
Object
- Object
- Proxybonanza::Responses::Base
- Defined in:
- lib/proxybonanza/responses/base.rb
Direct Known Subclasses
DeleteAuthip, GetAuthips, GetUserPackage, GetUserPackageDailyStats, GetUserPackageHourlyStats, GetUserPackages, PostAuthips
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(body_string) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(body_string) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/proxybonanza/responses/base.rb', line 7 def initialize(body_string) @body = JSON.parse(body_string) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
6 7 8 |
# File 'lib/proxybonanza/responses/base.rb', line 6 def body @body end |