Class: BentoSearch::Author
- Inherits:
-
Object
- Object
- BentoSearch::Author
- Includes:
- Results::Serialization
- Defined in:
- app/models/bento_search/author.rb
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(args = {}) ⇒ Author
constructor
A new instance of Author.
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
22 23 24 |
# File 'app/models/bento_search/author.rb', line 22 def empty? first.blank? && last.blank? && middle.blank? && display.blank? end |