Class: OpengraphTransporter::Base
- Inherits:
-
Object
- Object
- OpengraphTransporter::Base
- Defined in:
- lib/opengraph_transporter/base.rb
Constant Summary collapse
- @@translation =
nil
- @@user =
{}
Class Method Summary collapse
- .inspect ⇒ Object
- .run ⇒ Object
- .to_s ⇒ Object
- .translation ⇒ Object
- .translation=(value) ⇒ Object
- .user ⇒ Object
- .user=(value) ⇒ Object
Class Method Details
.inspect ⇒ Object
34 35 36 |
# File 'lib/opengraph_transporter/base.rb', line 34 def inspect "<#{self.name} user: #{user} translation: #{translation.inspect} >" end |
.run ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/opengraph_transporter/base.rb', line 9 def run setup say("<%= color('Preparing Translations....', YELLOW, BOLD) %>") prepare Common.show_translations_info(translation) say("<%= color('Process existing Destination application Translations (#{Base.translation[:dst_app_name]} native stubs) ....', YELLOW, BOLD) %>") run_export end |
.to_s ⇒ Object
38 39 40 |
# File 'lib/opengraph_transporter/base.rb', line 38 def to_s inspect end |
.translation ⇒ Object
18 19 20 |
# File 'lib/opengraph_transporter/base.rb', line 18 def translation @@translation end |
.translation=(value) ⇒ Object
22 23 24 |
# File 'lib/opengraph_transporter/base.rb', line 22 def translation=(value) @@translation = value end |
.user ⇒ Object
26 27 28 |
# File 'lib/opengraph_transporter/base.rb', line 26 def user @@user end |
.user=(value) ⇒ Object
30 31 32 |
# File 'lib/opengraph_transporter/base.rb', line 30 def user=(value) @@user = value end |