Class: Imgix::Config
- Inherits:
-
Object
- Object
- Imgix::Config
- Defined in:
- lib/imgix/config.rb
Constant Summary collapse
- DEFAULT_IMGIX_ATTACHMENT_ATTR =
:photo
- DEFAULT_IMGIX_PROTOCOL =
"https"
- DEFAULT_IMGIX_BASE_URL =
"imgix.net"
Instance Attribute Summary collapse
-
#base_url(url = nil) ⇒ Object
readonly
Returns the value of attribute base_url.
-
#protocol(_protocol = nil) ⇒ Object
readonly
Returns the value of attribute protocol.
-
#subdomain(_subdomain = nil) ⇒ Object
readonly
Returns the value of attribute subdomain.
Instance Method Summary collapse
Instance Attribute Details
#base_url(url = nil) ⇒ Object (readonly)
Returns the value of attribute base_url.
7 8 9 |
# File 'lib/imgix/config.rb', line 7 def base_url @base_url end |
#protocol(_protocol = nil) ⇒ Object (readonly)
Returns the value of attribute protocol.
7 8 9 |
# File 'lib/imgix/config.rb', line 7 def protocol @protocol end |
#subdomain(_subdomain = nil) ⇒ Object (readonly)
Returns the value of attribute subdomain.
7 8 9 |
# File 'lib/imgix/config.rb', line 7 def subdomain @subdomain end |
Instance Method Details
#field_name(name = nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/imgix/config.rb', line 9 def field_name(name = nil) if name.nil? @field_name || Imgix::Config::DEFAULT_IMGIX_ATTACHMENT_ATTR else @field_name = name end end |