Class: Bremen::Author

Inherits:
Object
  • Object
show all
Defined in:
lib/bremen/author.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Author

Returns a new instance of Author.



5
6
7
8
9
# File 'lib/bremen/author.rb', line 5

def initialize attrs = {}
  attrs.each do |key, value|
    send("#{key}=", value) if respond_to?(key)
  end
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/bremen/author.rb', line 3

def name
  @name
end

#thumbnail_urlObject

Returns the value of attribute thumbnail_url.



3
4
5
# File 'lib/bremen/author.rb', line 3

def thumbnail_url
  @thumbnail_url
end

#uidObject

Returns the value of attribute uid.



3
4
5
# File 'lib/bremen/author.rb', line 3

def uid
  @uid
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/bremen/author.rb', line 3

def url
  @url
end