Class: OpengraphTransporter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/opengraph_transporter/base.rb

Constant Summary collapse

@@translation =
nil
@@user =
{}

Class Method Summary collapse

Class Method Details

.inspectObject



34
35
36
# File 'lib/opengraph_transporter/base.rb', line 34

def inspect
  "<#{self.name} user: #{user} translation: #{translation.inspect} >"
end

.runObject



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_sObject



38
39
40
# File 'lib/opengraph_transporter/base.rb', line 38

def to_s
  inspect
end

.translationObject



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

.userObject



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