class ARBookFinder::Publisher

Attributes

isbn[R]
lccn[R]
name[R]
page_count[R]
year_published[R]

Public Class Methods

new(parsed_data) click to toggle source
# File lib/ar_book_finder/publisher.rb, line 6
def initialize(parsed_data)
  load(parsed_data)
end

Private Instance Methods

load(parsed_data) click to toggle source
# File lib/ar_book_finder/publisher.rb, line 11
def load(parsed_data)
  parsed_data.keys.each do |k|
    instance_variable_set("@#{k}", parsed_data[k])
  end
end