Class: Samwise::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/samwise/cli.rb

Instance Method Summary collapse

Instance Method Details

#check_formatObject



28
29
30
# File 'lib/samwise/cli.rb', line 28

def check_format
  wrap_sam("valid_format"){|c, u, j| u[j] = Samwise::Util.duns_is_properly_formatted?(duns: u['duns'])}
end

#excludedObject



16
17
18
# File 'lib/samwise/cli.rb', line 16

def excluded
  wrap_sam("excluded"){|c, u, j| u[j] = c.excluded?(duns: u['duns'])}
end

#formatObject



34
35
36
# File 'lib/samwise/cli.rb', line 34

def format
    wrap_sam("formatted_duns") {|c, u, j| u[j] = Samwise::Util.format_duns(duns: u['duns'])}
end

#get_infoObject



22
23
24
# File 'lib/samwise/cli.rb', line 22

def get_info
  wrap_sam("user_info"){|c, u, j| u[j] = c.get_duns_info(duns: u['duns'])}
end

#verifyObject



11
12
13
# File 'lib/samwise/cli.rb', line 11

def verify
  wrap_sam("verified"){|c, u, j| u[j] = c.duns_is_in_sam?(duns: u['duns'])}
end