Class: RPaste::PasteBin::Metadata
- Defined in:
- lib/rpaste/pastebin/metadata.rb
Instance Attribute Summary collapse
-
#age ⇒ Object
readonly
Time since being posted.
Attributes inherited from Metadata
Instance Method Summary collapse
-
#initialize(name, author, age, &block) ⇒ Metadata
constructor
Creates a new PasteBin Metadata object with the specified name, author and age.
Constructor Details
#initialize(name, author, age, &block) ⇒ Metadata
Creates a new PasteBin Metadata object with the specified name, author and age. If a block is given, then it will be passed the newly created PasteBin Metadata object.
15 16 17 18 19 |
# File 'lib/rpaste/pastebin/metadata.rb', line 15 def initialize(name,,age,&block) @age = age super(name,,&block) end |
Instance Attribute Details
#age ⇒ Object (readonly)
Time since being posted
8 9 10 |
# File 'lib/rpaste/pastebin/metadata.rb', line 8 def age @age end |