Class: Bunto::Commands::Post::PostFileInfo
Instance Attribute Summary
#params
Instance Method Summary
collapse
#content, #initialize
Instance Method Details
#_date_stamp ⇒ Object
53
54
55
|
# File 'lib/bunto/commands/post.rb', line 53
def _date_stamp
@params.date.strftime '%Y-%m-%d'
end
|
#file_name ⇒ Object
49
50
51
|
# File 'lib/bunto/commands/post.rb', line 49
def file_name
"#{_date_stamp}-#{super}"
end
|
#path ⇒ Object
45
46
47
|
# File 'lib/bunto/commands/post.rb', line 45
def path
"_posts/#{file_name}"
end
|
#resource_type ⇒ Object
41
42
43
|
# File 'lib/bunto/commands/post.rb', line 41
def resource_type
'post'
end
|