class BloomApi::Organization

A class representing an organizational provider

Public Instance Methods

employer_identification_number() click to toggle source

@return [String] the organization’s employer identification number

# File lib/bloom_api/organization.rb, line 7
def employer_identification_number
  case @raw_provider['employer_identification_number']
  when '<UNAVAIL>'
    nil
  else
    @raw_provider['employer_identification_number']
  end
end
is_subpart?() click to toggle source

designates whether the organization is a part of another @return [boolean] true if part of another organization @return [boolean] false if not part of another organization

# File lib/bloom_api/organization.rb, line 19
def is_subpart?
  case @raw_provider['organization_subpart']
  when 'yes'
    true
  when 'no'
    false
  else
    nil
  end
end
name() click to toggle source

@return [String] the business name of the organization

# File lib/bloom_api/organization.rb, line 31
def name
  @raw_provider['business_name']
end
official() click to toggle source

@return [OrganizationOfficial] the organization’s administrative official

# File lib/bloom_api/organization.rb, line 36
def official
  unless @raw_provider['organization_official'].nil?
    OrganizationOfficial.new(@raw_provider['organization_official'])
  end
end
other_name() click to toggle source

@return [String] an alternate name for the organization

# File lib/bloom_api/organization.rb, line 43
def other_name
  @raw_provider['other_name']
end
parent_organization() click to toggle source

@return [Organization] if the provider has a parent organization @return nil if there is no parent organization

# File lib/bloom_api/organization.rb, line 49
def parent_organization
  unless @raw_provider['parent_org'].nil?
    Organization.new(@raw_provider['parent_org'])
  end
end
tax_identification_number() click to toggle source

@return [String] the organization’s tax identification number

# File lib/bloom_api/organization.rb, line 56
def tax_identification_number
  @raw_provider['tax_identification_number']
end