Class: XapiScraper::Models::Components::TwitterAccountBasedStandardResponse

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/xapi_scraper/models/components/twitteraccountbasedstandardresponse.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(code: 200, msg: "success", data: nil) ⇒ TwitterAccountBasedStandardResponse

Returns a new instance of TwitterAccountBasedStandardResponse.



41
42
43
44
45
# File 'lib/xapi_scraper/models/components/twitteraccountbasedstandardresponse.rb', line 41

def initialize(code: 200, msg: "success", data: nil)
  @code = code
  @msg = msg
  @data = data
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
# File 'lib/xapi_scraper/models/components/twitteraccountbasedstandardresponse.rb', line 48

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