class BigCheck::Classifications

Attributes

response[RW]

Public Class Methods

new(response) click to toggle source
# File lib/big_check/classifications.rb, line 5
def initialize response
  @response = response[:get_ribiz_reference_data_response][:get_ribiz_reference_data_result] ||= {}
  @valid = (@response.empty?) ? false : true
end

Public Instance Methods

invalid?() click to toggle source
# File lib/big_check/classifications.rb, line 22
def invalid?
  !@valid
end
professional_groups() click to toggle source
# File lib/big_check/classifications.rb, line 10
def professional_groups
  return @response[:professional_groups][:professional_group]
end
type_of_specialisms() click to toggle source
# File lib/big_check/classifications.rb, line 14
def type_of_specialisms
  return @response[:type_of_specialisms][:type_of_specialism]
end
valid?() click to toggle source
# File lib/big_check/classifications.rb, line 18
def valid?
  @valid
end