class Salah
Constants
- Juristic
- Location
- Prayer
- School
- VERSION
Public Class Methods
day(date, options = {})
click to toggle source
@param (see Salah::HTTP#day
)
@return (see Salah::HTTP#day
)
# File lib/salah.rb, line 67 def self.day(date, options = {}) new(key: options.delete(:key)).day(date, options) end
juristics()
click to toggle source
@return [Array<Salah::Juristic>]
Returns an array of {Salah::Juristic} objects.
# File lib/salah.rb, line 16 def self.juristics @juristics ||= [[0, "Shafii"], [1, "Hanafi"]].map { |params| Salah::Juristic.new(*params) } end
new(key: nil)
click to toggle source
# File lib/salah.rb, line 71 def initialize(key: nil) @client = Salah::HTTP.new(key: key) end
schools()
click to toggle source
@return [Array<Salah::School>]
Returns an array of {Salah::School} objects.
# File lib/salah.rb, line 24 def self.schools @schools ||= [ [0, "Ithna Ashari", 16, 14], [1, "University of Islamic Sciences, Karachi", 18, 18], [2, "Islamic Society of North America", 15, 15], [3, "Muslim World League", 18, 17], [4, "Umm Al-Qura University, Mecca", 18.5, 90], [5, "Egyptian General Authority of Survey", 18, 18], [7, "Institute of Geophysics, University of Tehran", 17.7, 14], [8, "Morocco", 19, 18], [9, "Department of Islamic Advancement, Malaysia (JAKIM)", 20, 18], [10, "Majlis Ugama Islam Singapura", 20, 18], [11, "Union des Organisations Islamiques de France", 12, 12], [12, "Turkey", 12, 12] ].map { |params| Salah::School.new(*params) } end
this_week(options = {})
click to toggle source
@return (see Salah::HTTP#this_week
)
# File lib/salah.rb, line 58 def self.this_week(options = {}) new(key: options.delete(:key)).this_week(options) end
today(options = {})
click to toggle source
@return (see Salah::HTTP#today
)
# File lib/salah.rb, line 44 def self.today(options = {}) new(key: options.delete(:key)).today(options) end
tomorrow(options = {})
click to toggle source
@return (see Salah::HTTP#tomorrow
)
# File lib/salah.rb, line 51 def self.tomorrow(options = {}) new(key: options.delete(:key)).tomorrow(options) end
Public Instance Methods
day(date, options = {})
click to toggle source
@param (see Salah::HTTP#day
)
@return (see Salah::HTTP#day
)
# File lib/salah.rb, line 101 def day(date, options = {}) @client.day(date, options) end
this_week(options = {})
click to toggle source
@return (see Salah::HTTP#this_week
)
# File lib/salah.rb, line 92 def this_week(options = {}) @client.this_week(options) end
today(options = {})
click to toggle source
@return (see Salah::HTTP#today
)
# File lib/salah.rb, line 78 def today(options = {}) @client.today(options) end
tomorrow(options = {})
click to toggle source
@return (see Salah::HTTP#tomorrow
)
# File lib/salah.rb, line 85 def tomorrow(options = {}) @client.tomorrow(options) end