Class: Charyf::Engine::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/charyf/engine/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#htmlObject

Returns the value of attribute html.



5
6
7
# File 'lib/charyf/engine/response.rb', line 5

def html
  @html
end

#textObject

Returns the value of attribute text.



5
6
7
# File 'lib/charyf/engine/response.rb', line 5

def text
  @text
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/charyf/engine/response.rb', line 13

def empty?
  text.blank? && html.blank?
end