Class: Fastlane::Actions::Colors
- Inherits:
-
Object
- Object
- Fastlane::Actions::Colors
- Defined in:
- lib/fastlane/plugin/framer/actions/framer_action.rb
Instance Attribute Summary collapse
-
#background ⇒ Object
Returns the value of attribute background.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#background ⇒ Object
Returns the value of attribute background.
19 20 21 |
# File 'lib/fastlane/plugin/framer/actions/framer_action.rb', line 19 def background @background end |
#text ⇒ Object
Returns the value of attribute text.
19 20 21 |
# File 'lib/fastlane/plugin/framer/actions/framer_action.rb', line 19 def text @text end |
Instance Method Details
#merge(other) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/fastlane/plugin/framer/actions/framer_action.rb', line 21 def merge(other) unless other.text.nil? || other.text.empty? self.text = other.text end unless other.background.nil? || other.background.empty? self.background = other.background end end |
#to_s ⇒ Object
30 31 32 |
# File 'lib/fastlane/plugin/framer/actions/framer_action.rb', line 30 def to_s "{ text: #{self.text}, background: #{self.background} }" end |