class Author

Attributes

bio[RW]
name[RW]

Public Class Methods

new(name, bio) click to toggle source
# File lib/author.rb, line 4
def initialize(name, bio)
  @name = name
  @bio = bio
end

Public Instance Methods

to_h() click to toggle source
# File lib/author.rb, line 9
def to_h
  {
    name: name,
    bio: bio
  }
end