Class: Tinycms::Author
- Inherits:
-
Object
- Object
- Tinycms::Author
- Defined in:
- lib/tinycms/author.rb
Instance Attribute Summary collapse
-
#avatar_url ⇒ Object
readonly
Returns the value of attribute avatar_url.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(id:, email:, first_name:, last_name:, full_name:, title:, slug:, avatar_url:, created_at:, updated_at:) ⇒ Author
constructor
A new instance of Author.
Constructor Details
#initialize(id:, email:, first_name:, last_name:, full_name:, title:, slug:, avatar_url:, created_at:, updated_at:) ⇒ Author
Returns a new instance of Author.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/tinycms/author.rb', line 5 def initialize(id:, email:, first_name:, last_name:, full_name:, title:, slug:, avatar_url:, created_at:, updated_at:) @id = id @email = email @first_name = first_name @last_name = last_name @full_name = full_name @title = title @slug = slug @avatar_url = avatar_url @created_at = created_at @updated_at = updated_at end |
Instance Attribute Details
#avatar_url ⇒ Object (readonly)
Returns the value of attribute avatar_url.
19 20 21 |
# File 'lib/tinycms/author.rb', line 19 def avatar_url @avatar_url end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
19 20 21 |
# File 'lib/tinycms/author.rb', line 19 def created_at @created_at end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
19 20 21 |
# File 'lib/tinycms/author.rb', line 19 def email @email end |
#first_name ⇒ Object (readonly)
Returns the value of attribute first_name.
19 20 21 |
# File 'lib/tinycms/author.rb', line 19 def first_name @first_name end |
#full_name ⇒ Object (readonly)
Returns the value of attribute full_name.
19 20 21 |
# File 'lib/tinycms/author.rb', line 19 def full_name @full_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
19 20 21 |
# File 'lib/tinycms/author.rb', line 19 def id @id end |
#last_name ⇒ Object (readonly)
Returns the value of attribute last_name.
19 20 21 |
# File 'lib/tinycms/author.rb', line 19 def last_name @last_name end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
19 20 21 |
# File 'lib/tinycms/author.rb', line 19 def slug @slug end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
19 20 21 |
# File 'lib/tinycms/author.rb', line 19 def title @title end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
19 20 21 |
# File 'lib/tinycms/author.rb', line 19 def updated_at @updated_at end |