Class: Tinycms::Author

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject (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_atObject (readonly)

Returns the value of attribute created_at.



19
20
21
# File 'lib/tinycms/author.rb', line 19

def created_at
  @created_at
end

#emailObject (readonly)

Returns the value of attribute email.



19
20
21
# File 'lib/tinycms/author.rb', line 19

def email
  @email
end

#first_nameObject (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_nameObject (readonly)

Returns the value of attribute full_name.



19
20
21
# File 'lib/tinycms/author.rb', line 19

def full_name
  @full_name
end

#idObject (readonly)

Returns the value of attribute id.



19
20
21
# File 'lib/tinycms/author.rb', line 19

def id
  @id
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



19
20
21
# File 'lib/tinycms/author.rb', line 19

def last_name
  @last_name
end

#slugObject (readonly)

Returns the value of attribute slug.



19
20
21
# File 'lib/tinycms/author.rb', line 19

def slug
  @slug
end

#titleObject (readonly)

Returns the value of attribute title.



19
20
21
# File 'lib/tinycms/author.rb', line 19

def title
  @title
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



19
20
21
# File 'lib/tinycms/author.rb', line 19

def updated_at
  @updated_at
end