Class: RPaste::PasteBin::Metadata

Inherits:
Metadata
  • Object
show all
Defined in:
lib/rpaste/pastebin/metadata.rb

Instance Attribute Summary collapse

Attributes inherited from Metadata

#author, #name

Instance Method Summary collapse

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,author,age,&block)
  @age = age

  super(name,author,&block)
end

Instance Attribute Details

#ageObject (readonly)

Time since being posted



8
9
10
# File 'lib/rpaste/pastebin/metadata.rb', line 8

def age
  @age
end