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

Class Method Details

.configurationHiya::Configuration

Returns Hiya’s current configuration.

Returns:



18
19
20
# File 'lib/hiya/configuration.rb', line 18

def self.configuration
  @configuration ||= Configuration.new
end

.configuration=(config) ⇒ Object

Set Hiya’s configuration

Parameters:



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 “‘

Yields:



35
36
37
# File 'lib/hiya/configuration.rb', line 35

def self.configure
  yield configuration
end