Module: AskAwesomely

Defined in:
lib/ask_awesomely.rb,
lib/ask_awesomely/s3.rb,
lib/ask_awesomely/dsl.rb,
lib/ask_awesomely/field.rb,
lib/ask_awesomely/choice.rb,
lib/ask_awesomely/design.rb,
lib/ask_awesomely/picture.rb,
lib/ask_awesomely/version.rb,
lib/ask_awesomely/typeform.rb,
lib/ask_awesomely/api_client.rb,
lib/ask_awesomely/embeddable.rb,
lib/ask_awesomely/logic_jump.rb,
lib/ask_awesomely/field/email.rb,
lib/ask_awesomely/field/field.rb,
lib/ask_awesomely/field/legal.rb,
lib/ask_awesomely/field/number.rb,
lib/ask_awesomely/field/rating.rb,
lib/ask_awesomely/field/yes_no.rb,
lib/ask_awesomely/json_builder.rb,
lib/ask_awesomely/configuration.rb,
lib/ask_awesomely/field/website.rb,
lib/ask_awesomely/field/dropdown.rb,
lib/ask_awesomely/field/long_text.rb,
lib/ask_awesomely/field/statement.rb,
lib/ask_awesomely/field/short_text.rb,
lib/ask_awesomely/field/opinion_scale.rb,
lib/ask_awesomely/field/picture_choice.rb,
lib/ask_awesomely/field/multiple_choice.rb

Defined Under Namespace

Modules: DSL, Field, JsonBuilder Classes: ApiClient, Choice, Configuration, Design, Embeddable, LogicJump, Picture, S3, Typeform

Constant Summary collapse

ConfigurationError =
Class.new(ArgumentError)
FieldTypeError =
Class.new(ArgumentError)
EmbedTypeError =
Class.new(ArgumentError)
InvalidUrlError =
Class.new(TypeError)
InvalidFontError =
Class.new(ArgumentError)
VERSION =
"0.2.9"

Class Method Summary collapse

Class Method Details

.configurationObject



30
31
32
# File 'lib/ask_awesomely.rb', line 30

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

.configure(&block) ⇒ Object



34
35
36
# File 'lib/ask_awesomely.rb', line 34

def self.configure(&block)
  block.call(self.configuration)
end