Module: Hiya
- Defined in:
- lib/hiya.rb,
lib/hiya/url.rb,
lib/hiya/base.rb,
lib/hiya/link.rb,
lib/hiya/audio.rb,
lib/hiya/image.rb,
lib/hiya/oauth.rb,
lib/hiya/video.rb,
lib/hiya/version.rb,
lib/hiya/attach_base.rb,
lib/hiya/users/links.rb,
lib/hiya/configuration.rb,
lib/hiya/analytics/popular.rb
Defined Under Namespace
Modules: Analytics, Users Classes: AttachBase, Audio, Base, Configuration, Error, Image, Link, Oauth, Url, Video
Constant Summary collapse
- VERSION =
'0.2.3'
Class Method Summary collapse
-
.configuration ⇒ Hiya::Configuration
Hiya’s current configuration.
-
.configuration=(config) ⇒ Object
Set Hiya’s configuration.
-
.configure {|Hiya::Configuration| ... } ⇒ Object
Modify Hiya’s current configuration “‘ Hiya.configure do |config| config.routes = false end “`.
Class Method Details
.configuration ⇒ Hiya::Configuration
Returns Hiya’s current configuration.
18 19 20 |
# File 'lib/hiya/configuration.rb', line 18 def self.configuration @configuration ||= Configuration.new end |
.configuration=(config) ⇒ Object
Set Hiya’s configuration
24 25 26 |
# File 'lib/hiya/configuration.rb', line 24 def self.configuration=(config) @configuration = config end |
.configure {|Hiya::Configuration| ... } ⇒ Object
Modify Hiya’s current configuration “‘ Hiya.configure do |config|
config.routes = false
end “‘
35 36 37 |
# File 'lib/hiya/configuration.rb', line 35 def self.configure yield configuration end |