Class: Porni::Hubs::Parser::Base
- Inherits:
-
Object
- Object
- Porni::Hubs::Parser::Base
show all
- Defined in:
- lib/porni/hubs/parser/base.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(body) ⇒ Base
Returns a new instance of Base.
5
6
7
|
# File 'lib/porni/hubs/parser/base.rb', line 5
def initialize(body)
@body = body
end
|
Class Method Details
.parse_video(body) ⇒ Object
9
10
11
|
# File 'lib/porni/hubs/parser/base.rb', line 9
def self.parse_video(body)
new(body).parse_video
end
|
Instance Method Details
#invalid_attributes ⇒ Object
13
14
15
|
# File 'lib/porni/hubs/parser/base.rb', line 13
def invalid_attributes
{ valid: false, raw: @body }
end
|