Class: Fastlane::Actions::Colors

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/framer/actions/framer_action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backgroundObject

Returns the value of attribute background.



19
20
21
# File 'lib/fastlane/plugin/framer/actions/framer_action.rb', line 19

def background
  @background
end

#textObject

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_sObject



30
31
32
# File 'lib/fastlane/plugin/framer/actions/framer_action.rb', line 30

def to_s
  "{ text: #{self.text}, background: #{self.background} }"
end