Class: BentoSearch::Author

Inherits:
Object
  • Object
show all
Includes:
Results::Serialization
Defined in:
app/models/bento_search/author.rb

Instance Method Summary collapse

Methods included from Results::Serialization

#dump_to_json, #internal_state_hash

Constructor Details

#initialize(args = {}) ⇒ Author

Returns a new instance of Author.



5
6
7
8
9
# File 'app/models/bento_search/author.rb', line 5

def initialize(args ={})
  args.each_pair do |key, value|
    send("#{key}=", value)
  end
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/bento_search/author.rb', line 22

def empty?
  first.blank? && last.blank? && middle.blank? && display.blank?
end