Class: Company

Inherits:
Object
  • Object
show all
Defined in:
lib/hello_ruby_cli/company.rb

Overview

Get Company info

Constant Summary collapse

COMPANIES =
['Braincommerce', 'MadxCompany', 'INNORIX', 'The Ventures Lab'].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(company_name) ⇒ Company

Returns a new instance of Company.



9
10
11
# File 'lib/hello_ruby_cli/company.rb', line 9

def initialize(company_name)
  @company_name = company_name.downcase.gsub(' ', '_')
end

Instance Attribute Details

#company_nameObject

Returns the value of attribute company_name.



7
8
9
# File 'lib/hello_ruby_cli/company.rb', line 7

def company_name
  @company_name
end

Instance Method Details

#braincommerceObject



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/hello_ruby_cli/company.rb', line 17

def braincommerce
  "
 ___    ___    _____  _  _   _  ___    _____                ___    ___    ___    ___
(  _`\\ |  _`\\ (  _  )(_)( ) ( )(  _`\\ (  _  )/'\\_/`\\/'\\_/`\\(  _`\\ |  _`\\ (  _`\\ (  _`\\
| (_) )| (_) )| (_) || || `\\| || ( (_)| ( ) ||     ||     || (_(_)| (_) )| ( (_)| (_(_)
|  _ <'| ,  / |  _  || || , ` || |  _ | | | || (_) || (_) ||  _)_ | ,  / | |  _ |  _)_
| (_) )| |\\ \\ | | | || || |`\\ || (_( )| (_) || | | || | | || (_( )| |\\ \\ | (_( )| (_( )
(____/'(_) (_)(_) (_)(_)(_) (_)(____/'(_____)(_) (_)(_) (_)(____/'(_) (_)(____/'(____/'

 __     __      __      __        __      ___       _   _
 /'__`\\ /' _`\\  /'__`\\  /'__`\\    /' _`\\  /'_  )    /' \\/' )
(_)  ) )| ( ) |(_)  ) )(_)  ) )   | ( ) |(_)_) |   (_/\\__/'
 /' / | | | |   /' /    /' /    | | | | _(_ <
 /' /( )| (_) | /' /( ) /' /( ) _ | (_) |( )_) |
(_____/'`\\___/'(_____/'(_____/'(_)`\\___/'`\\____)
      "
end

#innorixObject



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/hello_ruby_cli/company.rb', line 54

def innorix
  "
 _  _   _  _   _  _____  ___    _  _    _
(_)( ) ( )( ) ( )(  _  )|  _`\\ (_)( )  ( )
| || `\\| || `\\| || ( ) || (_) )| |`\\`\\/'/'
| || , ` || , ` || | | || ,  / | |  >  <
| || |`\\ || |`\\ || (_) || |\\ \\ | | /'/\\`\\
(_)(_) (_)(_) (_)(_____)(_) (_)(_)(_)  (_)


 __     __      _    _        __      ___       _   _       __     __      _    __       __      _
 /'__`\\ /' _`\\  /' ) /'_`\\    /' _`\\  /'_  )    /' \\/' )    /'__`\\ /' _`\\  /' ) /'_ `\\   /' _`\\  /' )
(_)  ) )| ( ) |(_, |( (_) )   | ( ) |(_)_) |   (_/\\__/'    (_)  ) )| ( ) |(_, |( (_) |   | ( ) |(_, |
 /' / | | | |  | | > _ <'   | | | | _(_ <                   /' / | | | |  | | \\__, |   | | | |  | |
 /' /( )| (_) |  | |( (_) ) _ | (_) |( )_) |                /' /( )| (_) |  | |    | | _ | (_) |  | |
(_____/'`\\___/'  (_)`\\___/'(_)`\\___/'`\\____)               (_____/'`\\___/'  (_)    (_)(_)`\\___/'  (_)
"
end

#madx_companyObject



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/hello_ruby_cli/company.rb', line 35

def madx_company
  "
      _____  ___    _    _  ___    _____         ___    _____  _   _  _     _
/'\\_/`\\(  _  )(  _`\\ ( )  ( )(  _`\\ (  _  )/'\\_/`\\(  _`\\ (  _  )( ) ( )( )   ( )
|     || (_) || | ) |`\\`\\/'/'| ( (_)| ( ) ||     || |_) )| (_) || `\\| |`\\`\\_/'/'
| (_) ||  _  || | | )  >  <  | |  _ | | | || (_) || ,__/'|  _  || , ` |  `\\ /'
| | | || | | || |_) | /'/\\`\\ | (_( )| (_) || | | || |    | | | || |`\\ |   | |
(_) (_)(_) (_)(____/'(_)  (_)(____/'(_____)(_) (_)(_)    (_) (_)(_) (_)   (_)


 __     __      _    __       __    _____       _   _       __     __      __      _       _    __
 /'__`\\ /' _`\\  /' ) /'_ `\\   /' _`\\ (  ___)    /' \\/' )    /'__`\\ /' _`\\  /'__`\\  /' )    /' ) /'__`\\
(_)  ) )| ( ) |(_, |( (_) |   | ( ) || (__     (_/\\__/'    (_)  ) )| ( ) |(_)  ) )(_, |   (_, |(_)  ) )
 /' / | | | |  | | \\__, |   | | | ||___ `\\                  /' / | | | |   /' /   | |     | |   /' /
 /' /( )| (_) |  | |    | | _ | (_) |( )_) |                /' /( )| (_) | /' /( )  | | _   | | /' /( )
(_____/'`\\___/'  (_)    (_)(_)`\\___/'`\\___/'               (_____/'`\\___/'(_____/'  (_)(_)  (_)(_____/'
"
end

#showObject



13
14
15
# File 'lib/hello_ruby_cli/company.rb', line 13

def show
  public_send(@company_name)
end

#the_ventures_labObject



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/hello_ruby_cli/company.rb', line 73

def the_ventures_lab
  "
 _____  _   _  ___       _   _  ___    _   _  _____  _   _  ___    ___    ___       _      _____  ___
(_   _)( ) ( )(  _`\\    ( ) ( )(  _`\\ ( ) ( )(_   _)( ) ( )|  _`\\ (  _`\\ (  _`\\    ( )    (  _  )(  _`\\
| |  | |_| || (_(_)   | | | || (_(_)| `\\| |  | |  | | | || (_) )| (_(_)| (_(_)   | |    | (_) || (_) )
| |  |  _  ||  _)_    | | | ||  _)_ | , ` |  | |  | | | || ,  / |  _)_ `\\__ \\    | |  _ |  _  ||  _ <'
| |  | | | || (_( )   | \\_/ || (_( )| |`\\ |  | |  | (_) || |\\ \\ | (_( )( )_) |   | |_( )| | | || (_) )
(_)  (_) (_)(____/'   `\\___/'(____/'(_) (_)  (_)  (_____)(_) (_)(____/'`\\____)   (____/'(_) (_)(____/'


 __     __      _  _  _        __      _       _   _       __     __      _  _____       _   __
 /'__`\\ /' _`\\  /' )( )( )     /' _`\\  /' )    /' \\/' )    /'__`\\ /' _`\\  /' )(  ___)    /' )/' _`\\
(_)  ) )| ( ) |(_, || || |     | ( ) |(_, |   (_/\\__/'    (_)  ) )| ( ) |(_, || (__     (_, || ( ) |
 /' / | | | |  | || || |_    | | | |  | |                  /' / | | | |  | ||  _ `\\     | || | | |
 /' /( )| (_) |  | |(__ ,__) _ | (_) |  | |                /' /( )| (_) |  | || (_) | _   | || (_) |
(_____/'`\\___/'  (_)   (_)  (_)`\\___/'  (_)               (_____/'`\\___/'  (_)`\\___/'(_)  (_)`\\___/'
"
end