class SixSaferpay::Styling
Attributes
content_security_enabled[RW]
css_url[RW]
theme[RW]
Public Class Methods
new(css_url: nil, content_security_enabled: nil, theme: nil)
click to toggle source
# File lib/six_saferpay/models/styling.rb, line 6 def initialize(css_url: nil, content_security_enabled: nil, theme: nil) @css_url = css_url || SixSaferpay.config.css_url @content_security_enabled = content_security_enabled @theme = theme end
Public Instance Methods
to_hash()
click to toggle source
# File lib/six_saferpay/models/styling.rb, line 12 def to_hash hash = Hash.new hash.merge!(css_url: @css_url) if @css_url hash.merge!(content_security_enabled: @content_security_enabled) if !@content_security_enabled.nil? hash.merge!(theme: @theme) if @theme hash end
Also aliased as: to_h