Class: PrRuby::Letter

Inherits:
Object
  • Object
show all
Defined in:
lib/pr_ruby/letter.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content.



2
3
4
# File 'lib/pr_ruby/letter.rb', line 2

def content
  @content
end

#summaryObject

Returns the value of attribute summary.



2
3
4
# File 'lib/pr_ruby/letter.rb', line 2

def summary
  @summary
end

#titleObject

Returns the value of attribute title.



2
3
4
# File 'lib/pr_ruby/letter.rb', line 2

def title
  @title
end

#urlObject

Returns the value of attribute url.



2
3
4
# File 'lib/pr_ruby/letter.rb', line 2

def url
  @url
end

Class Method Details

.allObject



6
7
8
# File 'lib/pr_ruby/letter.rb', line 6

def self.all
 @@all
end

Instance Method Details

#saveObject



14
15
16
# File 'lib/pr_ruby/letter.rb', line 14

def save
 @@all << self
end