Class: MisarBlog::Models::Article
- Inherits:
-
Base
- Object
- Base
- MisarBlog::Models::Article
show all
- Defined in:
- lib/misarblog/models.rb
Overview
An article (draft, scheduled, published, ...).
Instance Attribute Summary
Attributes inherited from Base
#raw
Instance Method Summary
collapse
Methods inherited from Base
#[], #initialize, #to_h
Instance Method Details
#created_at ⇒ Object
35
|
# File 'lib/misarblog/models.rb', line 35
def created_at; @raw["created_at"]; end
|
#editor_url ⇒ Object
30
|
# File 'lib/misarblog/models.rb', line 30
def editor_url; @raw["editor_url"]; end
|
#excerpt ⇒ Object
31
|
# File 'lib/misarblog/models.rb', line 31
def excerpt; @raw["excerpt"]; end
|
#id ⇒ Object
25
|
# File 'lib/misarblog/models.rb', line 25
def id; @raw["id"]; end
|
#published_at ⇒ Object
34
|
# File 'lib/misarblog/models.rb', line 34
def published_at; @raw["published_at"]; end
|
#slug ⇒ Object
26
|
# File 'lib/misarblog/models.rb', line 26
def slug; @raw["slug"]; end
|
#status ⇒ Object
28
|
# File 'lib/misarblog/models.rb', line 28
def status; @raw["status"]; end
|
32
|
# File 'lib/misarblog/models.rb', line 32
def tags; @raw["tags"] || []; end
|
#title ⇒ Object
27
|
# File 'lib/misarblog/models.rb', line 27
def title; @raw["title"]; end
|
#url ⇒ Object
29
|
# File 'lib/misarblog/models.rb', line 29
def url; @raw["url"]; end
|
#visibility ⇒ Object
33
|
# File 'lib/misarblog/models.rb', line 33
def visibility; @raw["visibility"]; end
|