class ReligioCLI::Trads

Attributes

description[RW]
name[RW]
quick_facts[RW]
url[RW]

Public Class Methods

all() click to toggle source
# File lib/religio_cli/trads.rb, line 20
def self.all
  @@all
end
create_from_array(religion_hash_array) click to toggle source
# File lib/religio_cli/trads.rb, line 12
def self.create_from_array(religion_hash_array)
  religion_hash_array.each {|religion_hash| ReligioCLI::Trads.new(religion_hash)}
end
new(religion_hash) click to toggle source
# File lib/religio_cli/trads.rb, line 5
def initialize(religion_hash)
  @name = religion_hash[:name]
  @quick_facts = religion_hash[:quick_facts]
  @url = religion_hash[:url]
  @@all << self
end

Public Instance Methods

religion_details(religion_hash) click to toggle source
# File lib/religio_cli/trads.rb, line 16
def religion_details(religion_hash)
  @description = religion_hash[:description]
end