Class: XapiScraper::Models::Components::BlockUserResponse
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::BlockUserResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/blockuserresponse.rb
Overview
response
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(code: 200, msg: "success", data: nil) ⇒ BlockUserResponse
constructor
A new instance of BlockUserResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(code: 200, msg: "success", data: nil) ⇒ BlockUserResponse
Returns a new instance of BlockUserResponse.
37 38 39 40 41 |
# File 'lib/xapi_scraper/models/components/blockuserresponse.rb', line 37 def initialize(code: 200, msg: "success", data: nil) @code = code @msg = msg @data = data end |
Instance Method Details
#==(other) ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/xapi_scraper/models/components/blockuserresponse.rb', line 44 def ==(other) return false unless other.is_a?(self.class) return false unless @code == other.code return false unless @msg == other.msg return false unless @data == other.data true end |