Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
lobbyist-ruby / lib / lobbyist / enterprise.rb
Size: Mime:
module Lobbyist
  class Enterprise < Lobbyist::Base
    attr_accessor :id, :name, :address1, :address2, :city, :state, :zipcode, :country
    attr_accessor :phone_number, :website, :status, :classification, :account_level_id
    attr_accessor :created_at, :updated_at

    def setting
      @setting_attributes
    end

    def setting=(attributes)
      @setting_attributes = EnterpriseSetting.new(attributes)
    end

    def category_ids
      @category_ids
    end

    def category_ids=(arrary_of_ids)
      @category_ids = arrary_of_ids
    end

    def self.create(enterprise_params, enterprise_user_params)
      params = {enterprise: enterprise_params, enterprise_user: enterprise_user_params}
      create_from_response(post("/v1/enterprises.json", params))
    end
  end
end