Class: Bremen::Author
- Inherits:
-
Object
- Object
- Bremen::Author
- Defined in:
- lib/bremen/author.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#thumbnail_url ⇒ Object
Returns the value of attribute thumbnail_url.
-
#uid ⇒ Object
Returns the value of attribute uid.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Author
constructor
A new instance of Author.
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
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/bremen/author.rb', line 3 def name @name end |
#thumbnail_url ⇒ Object
Returns the value of attribute thumbnail_url.
3 4 5 |
# File 'lib/bremen/author.rb', line 3 def thumbnail_url @thumbnail_url end |
#uid ⇒ Object
Returns the value of attribute uid.
3 4 5 |
# File 'lib/bremen/author.rb', line 3 def uid @uid end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/bremen/author.rb', line 3 def url @url end |